Could someone tell me how you would set up default routes within a namspace similar to this... map.connect '':namspace/:controller/:action/:id'' I have tried several ways inside... map.namespace :example do |a| end with no luck. Thanks, Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Could someone tell me how you would set up default routes within a namspace similar to this... map.connect '':namespace/:controller/:action/:id'' I have tried several ways inside... map.namespace :example_namespace do |a| end with no luck. Thanks, Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ESPNDev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-May-20 22:44 UTC
Re: Namespaced routes
map.namespace(:admin) do |admin| admin.resources :products, :collection => { :inventory => :get }, :member => { :duplicate => :post }, :has_many => [ :tags, :images, :variants ] end http://www.railstips.org/2007/4/28/namespaces-added-to-routes On May 20, 11:40 am, twoism <signalsta...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Could someone tell me how you would set up default routes within a > namspace similar to this... > > map.connect '':namespace/:controller/:action/:id'' > > I have tried several ways inside... > > map.namespace :example_namespace do |a| > > end > > with no luck. > > Thanks, > Chris--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---