On May 5, 1:20 pm, Clem Rock <[email protected]> wrote: > Update: > > I realized I should also attempt to go w/ a operations_controller > instead of the operator_profile_controller. So I did that and I now > have in routes: > > resources :operations > > and in operations controller I have all 7 rest methods. > > And now I'm getting this: > > No route matches {:controller=>"operators", :action=>"edit"} > > because of this link in application.html.erb: > > <%= link_to('Profile', :controller => "operators", :action => "edit") > %> > > and this fails as well: > > <%= link_to('Profile', :controller => "operators_profile", :action => > "edit") %> > > My model is operator.rb >
Your issue is that the restful edit/update routes requires an id (which object to edit/update) and you're not providing one, which is why I suggested you look at singleton resources. Fred -- 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.

