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 Skidmore -- 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 -~----------~----~----~----~------~----~------~--~---
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 Skidmore <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 Skidmore > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
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 Skidmore <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Thank you Geoff. I''ll do both and and figure it out from there. Cody Skidmore -- 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 -~----------~----~----~----~------~----~------~--~---