Ruby on Rails Saturday, May 1, 2010

I am using a namespaced controller as described here
http://guides.rubyonrails.org/routing.html#controller-namespaces-and-routing

When using:

map.with_options(:namespace => "admin") do |admin|
admin.resources :photos, :videos end

and then attempting to use the path/url helper new_photo_path it links
to photos/new instead of admin/photos/new as expected.

How can I acheive the expected behavior?

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment