In my app, users have messages.
resources :users do
resources :messages
end
Users can access their profile with a pretty url, say /albert.
match ':username' => 'users#show', :as => 'username'
But not their messages!
user_message_path(@user, 1)
returns /users/1/messages/1. How do I get it to return /albert/messages/1?