Challenge Solution: Comments Form
The solution to the Comments Form challenge.
We'll cover the following...
Solution
//= link_tree ../images //= link_directory ../javascripts .js //= link_directory ../stylesheets .css
Explanation
app/views/links/show.html.erb
Line 15: Use form
. All methods for forms are called on form
.
-
Passing
[ @link, @link.comments.build ]
as ...