...

/

Challenge Solution: Controller

Challenge Solution: Controller

The solution to the Controller challenge.

Solution

//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css

Explanation

app/controllers/comments_controller.rb

Line 28: Retrieves the link_id for the currently opened link and stores it in an instance variable (@link). Each request for comment has to keep ...