Created
October 12, 2008 05:24
-
-
Save benschwarz/16363 to your computer and use it in GitHub Desktop.
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
Merb.logger.info("Compiling routes...") | |
Merb::Router.prepare do |r| | |
# RESTful routes | |
# resources :posts | |
resources :newsletters do | |
member :subscribe, :method => :post | |
member :unsubscribe, :method => :delete | |
end | |
# This is the default route for /:controller/:action/:id | |
# This is fine for most cases. If you're heavily using resource-based | |
# routes, you may want to comment/remove this line to prevent | |
# clients from calling your create or destroy actions with a GET | |
default_routes | |
# Change this for your home page to be available at / | |
# match('/').to(:controller => 'whatever', :action =>'index') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment