http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-3-2-to-rails-4-0
commits marked with [rails 4]
##no more match routes # change match 'logout' => 'user_sessions#destroy', :as => :logout
# to
post 'logout' => 'user_sessions#destroy', :as => :logout