Map.namespace(:admin)

There was some information regarding nesting resources inside a
namespace such as an admin function. Could someone point me toward a
good tutorial or documentation explaining how to use this feature?

Cody S.

Its fairly simple, the API docs for it aren’t too bad
http://api.rubyonrails.org/classes/ActionController/Routing/RouteSet/Mapper.html#M000351

Easiest thing would be to write something like

map.namespace(:admin) do |route|
route.resources :articles
end

then run the rake routes task to see what it effectively generates

Geoff

On Dec 17, 3:45 am, Cody S. [email protected]

Spongy wrote:

Its fairly simple, the API docs for it aren’t too bad
http://api.rubyonrails.org/classes/ActionController/Routing/RouteSet/Mapper.html#M000351

Easiest thing would be to write something like

map.namespace(:admin) do |route|
route.resources :articles
end

then run the rake routes task to see what it effectively generates

Geoff

On Dec 17, 3:45 am, Cody S. [email protected]

Thank you Geoff. I’ll do both and and figure it out from there.

Cody S.