Created
April 29, 2013 17:29
-
-
Save joshuamiller/5483229 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/routes.rb | |
get '/sign_in' => 'user_sessions#new', :as => :sign_in | |
post '/sign_in' => 'user_sessions#create', :as => :sign_in | |
# Output | |
#=> Invalid route name, already in use: 'sign_in' | |
#=> You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here: | |
#=> http://guides.rubyonrails.org/routing.html#restricting-the-routes-created |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment