RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: halogenandtoast
Site: http://www.halogenandtoast.com
You can simplify the routes you added to this:
get 'signup' => 'users#new' get 'login' => 'sessions#new' get 'logout' => 'sessions#destroy'
It's shorter and cleaner. The as: option is completely unnecessary since rails will add the path helpers without it.
You can simplify the routes you added to this:
It's shorter and cleaner. The as: option is completely unnecessary since rails will add the path helpers without it.