ruby - Prefixing Route Controllers in Rails -
is there way prefix controller path in routes.rb
, don't have specify manually?
before:
resources :users, :controller => 'api/users'
after:
resources :users, :controller => 'api/users'
or after:
resources :users
namespace :api resources :users end
Comments
Post a Comment