Just a couple of points to add - might be typos in the post, or may be
relevant to your controllers....

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

** operations **
>
> and in operations controller I have all 7 rest methods.
>
> And now I'm getting this:
>
> No route matches {:controller=>"operators", :action=>"edit"}

** operators **
>
> because of this link in application.html.erb:
>
>  <%= link_to('Profile', :controller => "operators", :action => "edit")
> %>

** operators **
>
> and this fails as well:
>
> <%= link_to('Profile', :controller => "operators_profile", :action =>
> "edit") %>
>
> My model is operator.rb
>
> Here's a dump of all my operator related routes:

Is your controller operator[s], or operations?

>
> [code]
>       operator_profile_index GET    /operator_profile(.:format)
> {:action=>"index", :controller=>"operator_profile"}
>                              POST   /operator_profile(.:format)
> {:action=>"create", :controller=>"operator_profile"}
>         new_operator_profile GET    /operator_profile/new(.:format)
> {:action=>"new", :controller=>"operator_profile"}
>        edit_operator_profile GET    /operator_profile/:id/edit(.:format)
> {:action=>"edit", :controller=>"operator_profile"}
>             operator_profile GET    /operator_profile/:id(.:format)
> {:action=>"show", :controller=>"operator_profile"}
>                              PUT    /operator_profile/:id(.:format)
> {:action=>"update", :controller=>"operator_profile"}
>                              DELETE /operator_profile/:id(.:format)
> {:action=>"destroy", :controller=>"operator_profile"}
>
>                    operators GET    /operators(.:format)
> {:action=>"index", :controller=>"operators"}
>                              POST   /operators(.:format)
> {:action=>"create", :controller=>"operators"}
>                 new_operator GET    /operators/new(.:format)
> {:action=>"new", :controller=>"operators"}
>                edit_operator GET    /operators/:id/edit(.:format)
> {:action=>"edit", :controller=>"operators"}
>                     operator GET    /operators/:id(.:format)
> {:action=>"show", :controller=>"operators"}
>                              PUT    /operators/:id(.:format)
> {:action=>"update", :controller=>"operators"}
>                              DELETE /operators/:id(.:format)
> {:action=>"destroy", :controller=>"operators"}
> [/code]
>
> --
> Posted viahttp://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.

Reply via email to