Good notes posted by javiervidal
RSS feed
javiervidal -
March 3, 2011
8 thanks
Using namespaces
If you are using a namespace in your routes.rb, for example:
namespace :admin do resources :products end
then you can:
url_for([:admin, @product])
and:
url_for([:edit, :admin, @product])