Tom Tom wrote in post #956151:
> doing just:
> map.namespace :admin do |admin|
>
>     admin.resources :categories, :controller=>"categories"
> end
>
> gives me two routes:
> /admin/categories
> /categories
>
> both are hitting the right controllers, but once im on the
> admin-index-view,
> all other links are still prefixed with admin. o well

You may need to use :controller => '/whatever' instead of :controller =>
'whatever' in your link_to to force things into the root namespace.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

-- 
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