Created
August 15, 2012 19:27
-
-
Save hardbap/3362826 to your computer and use it in GitHub Desktop.
Sample routes
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
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