I''m checking out the new router in Rails 3, and was looking to create
an ''/admin'' section of a website with several namespaced
resources,
however I''d like the top level ''/admin'' to also route
to a
controller. Here''s my current setup:
match ''admin'' => ''admin#index'', :as =>
''admin''
namespace :admin do
resources :users
resources :roles
end
It seems to work fine, however I get the feeling that there is a
better way (perhaps a block on the ''match''). Is that the
''best'' way
to have ''/admin'' respond with a page?
Thanks,
-Mike
--
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
groups.google.com/group/rubyonrails-talk?hl=en.