Skip to content

Instantly share code, notes, and snippets.

@hardbap
Created August 15, 2012 19:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hardbap/3362826 to your computer and use it in GitHub Desktop.
Sample routes
MyApp::Application.routes.draw do
# we only need index and show
resources :posts, :only => [:index, :show]
# we need everything but destroy
resources :widgets, :except => [:destroy]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment