Hi, I have decided to setup my Rails app with a public and admin side. To manage a list of users, I have a public app/controllers/users_controller.rb where users can list there friends. And an admin side: app/controllers/admin/users_controller.rb where all registered users are listed and on which I can do some account management. In the routes files I have: map.resources :users map.namespace :admin do |admin| admin.resources :users end But when I click a link such as http://mysite.com/admin/users which should send me to the admin users index action, instead I go to the public users/index action. I have already setup this admin scheme for products, but in my admin controller I don''t have the index action, so it doesn''t interfere with the public one. What else should I define? -- Posted via http://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 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 -~----------~----~----~----~------~----~------~--~---
Fernando Perez
2008-Apr-30 13:49 UTC
Re: Admin namespace not working with duplicated action
Please disregard my email, I simply had app/controllers/users.rb, I didn''t name the file correctly... -- Posted via http://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 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 -~----------~----~----~----~------~----~------~--~---