I have following from rake routes:
user GET /users/:id(.:format) {:action=>"show", :controller=>"users"}
But when I do, for an email template:
<%= link_to(@comment.user.full_name, user_url(:only_path => false), :style => 'color:#5196E3;text-decoration:underline;') %>
I get the following error: “ActionView::Template::Error (No route matches {:action=>”show”, :controller=>”users”}):”
Thoughts? Thanks
If you look at the route it needs an :id to parse. So you should supply the user like this: