Guest User

Untitled

a guest
Feb 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. map.resources :settings
  2. map.namespace(:settings) do |setting|
  3. setting.resources :units
  4. setting.resources :groups
  5. end
  6.  
  7. class Settings::Units < SettingsController
  8. end
  9. class Settings::Groups < SettingsController
  10. end
  11.  
  12. link_to 'Groups', settings_groups_path
  13. --> which leads to SettingsController.show, though i expected: Groups.index
Add Comment
Please, Sign In to add comment