Displaying 1 result from an estimated 1 matches for "shop_categories_path".
2010 Jan 20
0
How to map a Named Route onto a namespaced resource?
...e, since it encapsulates the shop nicely inside my
webapplication.
Somehow I would like the url "http://mysite.com/shop" to map to the
shop''s "frontpage", which in my case is Categories#index
But I don''t know how to do it.
map.shop ''/shop'', shop_categories_path
doesn''t work
map.shop ''/shop'', :controller => ''categories'', :action => ''index''
misses the namespace
So what should I do?
- Carsten
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscr...