ruby - How to use namespace in rails without namespace in url -
i have question routes in rails when using namespaces. example code: namespace :api # /api/... api:: namespace :v1 devise_for :users, :controllers => {sessions: 'api/v1/users/sessions', :registrations => "api/v1/users/registrations", :password => 'api/v1/users/passwords'} resources :events namespace :informations resources :agendas resources :attendees resources :polls resources :presentatios resources :speakers resources :sponsors resources :votes resources :vote_options end end end end i check url in console grep agenda, , results in: /api/v1/events/:event_id/informations/agendas how can remove namespace information url without removing namespace routes? you can use module option add namespace (as in module wrapping) controllers: resources :events, module: 'v1/api' prefix verb uri pa...