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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to