Guest User

Untitled

a guest
Feb 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. 28 Merb.logger.info("Compiling routes...")
  2. 29 Merb::Router.prepare do
  3. 30 resources :homies
  4. 31 # RESTful routes
  5. 32 # resources :posts
  6. 33 match("/blah").to(:controller => "blah")
  7. 34 --
  8. 35 # Adds the required routes for merb-auth using the password slice
  9. 36 # slice(:merb_auth_slice_password, :name_prefix => nil, :path_prefix => "")
  10. 37
  11. 38 # This is the default route for /:controller/:action/:id
  12. 39 # This is fine for most cases. If you're heavily using resource-based
  13. 40 # routes, you may want to comment/remove this line to prevent
  14. 41 # clients from calling your create or destroy actions with a GET
  15. 42 # default_routes
  16. 43 --
  17. 44 # Change this for your home page to be available at /
  18. 45 # match('/').to(:controller => 'whatever', :action =>'index')
  19. 46 end
Add Comment
Please, Sign In to add comment