how to add a root in to a namespace in routes.rb ? we can add root in routes.rb like map.root :products suppose if it is a namespace then how to add root to it? map.namespace(:admin) do |admin| admin.root :products # this is not working admin.resources :products end any idea? by (S&G-typeH) #---Yes t|-|eRe is No LoGiC iN t|-|e Life---# -- 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 -~----------~----~----~----~------~----~------~--~---
Peter De Berdt
2008-Sep-19 13:31 UTC
Re: how to add a root in to a namespace in routes.rb ?
On 19 Sep 2008, at 15:20, Pokkai Dokkai wrote:> map.namespace(:admin) do |admin| > admin.root :products # this is not workingadmin.root :controller => "products", :action => "index"> > admin.resources :products > end--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Pokkai Dokkai
2008-Sep-19 13:36 UTC
Re: how to add a root in to a namespace in routes.rb ?
Peter De Berdt wrote:> On 19 Sep 2008, at 15:20, Pokkai Dokkai wrote: > admin.root :controller => "products", :action => "index"thanks -- 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 -~----------~----~----~----~------~----~------~--~---