Last active
August 29, 2015 14:11
-
-
Save PabloVallejo/530fa98a7b38ed8fbe4e to your computer and use it in GitHub Desktop.
Examples of routes usage
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
# Resource without certain actions. | |
resources :users, :except => :show | |
# Specify routes and add new ones. | |
resources :sessions, :only => [:new, :create, :destroy] do | |
get :recovery, :on => :member | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment