Created
March 24, 2013 23:54
-
-
Save marcdel/5234132 to your computer and use it in GitHub Desktop.
Two new ways to write routes in rails 4.
This file contains 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
post '/home', to: 'home#index' | |
get '/home', to: 'home#index' | |
match '/home', to: 'home#index', via: :post | |
match '/home', to: 'home#index', via: :all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment