I have a registrations controller which of course conflicts with Devise's registrations controller and instead of renaming I thought of namespacing my registrations controller to :
namespace :team do
resources :registrations
end
which works fine, but I cannot nest inside this Team::Registrations I have been using
namespace :team do
resources :registrations do
resources :players
end
end
The route helper I want is new_team_registration_player_path
or team/registration/:id/players/new
but instead I get /team/registration/player/new(.:format) without the team/registrations/:id.
Any ideas ?
resources :registrations, :only => [:show] do; resources :players; end. In this way, all "players" routes will be made like this/team/registration/:id/<players routes>/. Let me know if it solves your problem.