Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment