Super quick post…
The error:
Unable to autoload constant NameOfController, expected path/name_of_controller.rb to define it
is due to the controller file missing the class declaration.
Another note:
Passing a collection to “render” will automatically iterate through the collection:
<% render @user %>