mfairchi
2008-Sep-15 22:45 UTC
map.resources :staff, but /staff/ gives show action, not index?
Hello, I''m having a hell of a time with my map.resources I have: map.resource :staff in my routes.rb, but when i go to localhost:3000/staff it takes me to the show action? This is not the default i remember. How can I change it, or figure out why this is happening? Any ideas? Thanks, Michael --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
mfairchi
2008-Sep-15 22:48 UTC
Re: map.resources :staff, but /staff/ gives show action, not index?
solved: the problem was I was using map.resource, not map.resources (plural), Dohh! ~michael On Sep 15, 3:45 pm, mfairchi <fairchild.mich...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > I''m having a hell of a time with my map.resources > > I have: > map.resource :staff > in my routes.rb, but when i go to localhost:3000/staff it takes me to > the show action? This is not the default i remember. How can I > change it, or figure out why this is happening? Any ideas? > Thanks, > Michael--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---