i have a couple controller namespaces in my app and to keep things
DRY, i would like to use a common controller in some of them.

when i try creating a route, i can not figure out how to
set :controller to use a controller outside of the namespace.

map.namespace :user do |user|
  user.resource :something, :controller => "something"
  user.resource :something2, :controller => "/something2"
end

 {:action=>"show", :controller=>"user/something"}
 {:action=>"show", :controller=>"user//something2"}

i want
 {:action=>"show", :controller=>"something"}

is there a way to tell rails not to automatically add the "user/" to
the beginning of the controller name?

i guess i could create a blank User::Something controller that
inherits from the Something controller, but it seems silly to have to
create an extra controller.


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