For this route
edit_operator_profile GET /operator_profile/:id/edit(.:format)
{:action=>"edit", :controller=>"operator_profile"}
Below is wrong
<%=link_to('Profile',:controller => "operators_profile",:action
=>"edit")%>
Correct will be
<%=link_to('Profile',:controller => "operators_profile",:action
=>"edit", :id => @your_operator_profile)%>
Or even shorter
<%=link_to('Profile',edit_operator_profile(@your_operator_profile))%>
Restful resources are really easy if you look carefully at output of
rake routes
----
http://blog.eugen.co
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.