Currently I have a rails app where user profiles are viewed at "/users/:id", but I want to change that to "/:username". I've fixed the rails routes so that I have "match '/:username', :to => 'users#show', but I want to make it so I can easily use "redirect_to @user" within the controllers so that it goes to this new route. This still currently goes to "/users/:id".
How would I go about editing the default route?