I have just got my web app working with usernames being like this: http://myapp.com/dean instead of http://myapp.com/users/dean.
How do I go about redirecting the /users/ to their username?
This is what my routes.rb file looks like (not the pages, etc):
resources :users
resources :sessions, :only => [:new, :create, :destroy]
match ':id' => 'users#show'
Removing the resources :users breaks the site completely and shows No route matches errors.
Try to add :path => ” to resources :users: