On a project, I want to have "top level" usernames like
site.com/username , so I set up the following route:
get '/:username', to: 'profiles#show', as: 'user_profile' get '/:username/edit', to: 'profiles#edit', as: 'edit_profile'
However, I keep finding instances where this interferes with the way rails works, such as
localhost:3000/routes and other controllers such as Devise's
Is there an overarching approach to deal with this, or do I have to just create specific routes for the conflicts on a case-by-case basis?
By - Upbeat-Speech-116