Hello,
I''m trying to re-create the old route to the new route method in Rails
3, but i cannot figure out how to do it.
scope :admin, :name_prefix => "admin" do
resources :accounts, :users
end
this doesn''t give me "admin_controller" for "admin"
path
and not "/admin/accounts" path for the resources
resources :admin do
resources :accounts, :users
end
this doesn''t fix the issue since it create those urls
admin/:admin_id/accounts etc.
namespace :admin do
resources :accounts, :users
end
neither this one, since it doesn''t allow me to have
"admin_controller"
I hope you know what i need for now :D
Thanks for any help...
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.