Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. namespace :admin do
  2. mount AdminSettings::Engine => "/"
  3. mount AdminProfile::Engine => "/"
  4. end
  5.  
  6. # admin_settings/config/routes.rb
  7. AdminSettings::Engine.routes.draw do
  8. resources :settings
  9. end
  10.  
  11. # admin_profile/config/routes.rb
  12. AdminProfile::Engine.routes.draw do
  13. resources :profile
  14. end
  15.  
  16. # then you could access
  17. # /admin/profiles
  18. # /admin/settings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement