re5et
2010-May-02 06:58 UTC
Problems with _path and _url helpers using namespaced controller
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.