Skip to content

Instantly share code, notes, and snippets.

@PabloVallejo
Last active August 29, 2015 14:11
Show Gist options
  • Save PabloVallejo/530fa98a7b38ed8fbe4e to your computer and use it in GitHub Desktop.
Save PabloVallejo/530fa98a7b38ed8fbe4e to your computer and use it in GitHub Desktop.
Examples of routes usage
# 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