For some reason, my "<span><%= link_to @story.user.login, @story.user %></span>" update to the view/stories/show.html.erb isn't working. It's not building the URL for @story.user
Any help is appreciated. --Thanks
I did check and the following works:
<span><%= link_to @story.user.login, { :controller => 'users', :action => 'show', :id => @story.user.to_param } %></span>
You may want to check your config/routes.rb file to make sure the resource has been mapped (map.resources :users), maybe add a bit of code the link <%= link_to @story.user.login, user_path(@story.user) %>
Thanks much. That was the extra insight I needed. The error was actually in the routes file. The difference between 'map.resource' and 'map.resources'.
Bookmarks