Although the Rails Guides say it is a newcomers issue, I also get sometimes confused with the render command:
"Using render with :action is a frequent source of confusion for Rails newcomers. The specified action is used to determine which view to render, but Rails does not run any of the code for that action in the controller. Any instance variables that you require in the view must be set up in the current action before calling render."
No comments yet.