Skip to content

Instantly share code, notes, and snippets.

@kungfumike
Created October 29, 2008 17:51
Show Gist options
  • Save kungfumike/20764 to your computer and use it in GitHub Desktop.
Save kungfumike/20764 to your computer and use it in GitHub Desktop.
28 Merb.logger.info("Compiling routes...")
29 Merb::Router.prepare do
30 # RESTful routes
31 # resources :posts
32 --
33 # Adds the required routes for merb-auth using the password slice
34 slice(:merb_auth_slice_password, :name_prefix => nil, :path_prefix => "")
35
36 # This is the default route for /:controller/:action/:id
37 # This is fine for most cases. If you're heavily using resource-based
38 # routes, you may want to comment/remove this line to prevent
39 # clients from calling your create or destroy actions with a GET
40 default_routes
41 --
42 # Change this for your home page to be available at /
43 # match('/').to(:controller => 'whatever', :action =>'index')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment