On 5 May 2011 12:11, clem_c_rock <[email protected]> wrote:

Please don't top post, it makes it difficult to follow the thread.
Insert your reply at appropriate points in previous message.

>
> Thanks for your help.   I realized before I saw your reply that I should have
> made a operations_controller instead of the operator_profile_controller.
> So I did that and I now have:
>
> resources :operations in routes

Did you restart the server after changing routes.rb?

>
> 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") %>

What have you got in routes.rb for operators?

Colin

>
> and when I do a rake routes - the only methods that are listed for operators
> are:
>
>  operators GET    /operators(.:format)
> {:action=>"index", :controller=>"operators"}
>               POST   /operators(.:format)
> {:action=>"create", :controller=>"operators"}

-- 
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.

Reply via email to