Sunday, December 22, 2013

Rails: routes

If we want to 'namespace' our routes, but do not want the 'named routes' to have namespace's name in the prefix:


namespace :admin, as: '' do
   get '/post/new' => 'posts#new', as: 'new_admin_post'
end

No comments:

Post a Comment

Followers

Blog Archive