If you add a resource map to the namespace in routes.rb in Rails 2.3, how do you do link_to (and form_for , etc.), understand that it should get a controller with a name extension instead of one in the root Namespace?
For example...
With this in routes.rb :
map.namespace :admin do |admin| admin.resources :opt_in_users end
And this is in the view:
<%= link_to @anOptInUser %>
That link_to should use link_for_admin_opt_in_user , but instead tries to use link_for_opt_in_user , which fails.
ruby-on-rails
nevyn
source share