I'm trying to setup a route next to my
So this gives me the basic routes (incl. users/:id)
But now I'd like to show users through their username (like this:
How should I do that?
I've got my routes setup like this at the moment: (the
users/:username) does work now, but all the rest doesn't work (for the
resource :account, :controller => "users"
match '/users/:username' => 'users#show'
resources :users, :user_sessions, :homes, :shouts, :activations
match '/register/:activation_code' => 'activations#new', :as
match '/activate/:id' => 'activations#create', :as => :activate
root :to => "homes#index"