daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## the routing...
  2. r.match('/admin').to(:namespace => 'admin') do |a|
  3.   a.resources :users
  4.   a.resources :widgets
  5.   a.resources :gadgets
  6.   a.resource  :session
  7.  
  8.   a.match('/some_misc_thing_for_admins').to(:controller => 'something', :action => 'else')
  9. end
  10.  
  11. ## the results...
  12. /admin/some_misc_things_for_admins results in Admin::Something#else being dispatched
  13. /admin/users, /admin/widgets, admin/gadgets, admin/session, result in merb raising Merb::ControllerExceptions::BadRequest
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top