Results 1 to 3 of 3
May 4, 2011, 21:20 #1
- Join Date
- Jul 2004
- 0 Post(s)
- 0 Thread(s)
Restful routing seems excessive at times - I want to simplify
I'm still trying to get used to REST concepts and forms
I have a very simple controller that updates user profile data. I have this link that takes me to the controller:
<%= link_to('Profile', :controller => "operator_profile", :action => "edit") %>
I then want to simply display the operator's data like this:
@operator = Operator.find(current_operator.id)
and I want a form that posts to a update method in operator_profile. in my routes I have
I feel like I'm completely locked into the 7 base methods of REST and everything else throws routing errors
I couldn't even get the update method to work.
Can this be simplified?