RailsCasts Pro episodes are now free!

Learn more or hide this

Matthew Mongeau's Profile

GitHub User: halogenandtoast

Site: http://www.halogenandtoast.com

Comments by Matthew Mongeau

Avatar

You can simplify the routes you added to this:

ruby
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.