Skip to content

Instantly share code, notes, and snippets.

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