Skip to content

Instantly share code, notes, and snippets.

@Mikr0Tik
Created November 14, 2008 15:16
Show Gist options
  • Save Mikr0Tik/24944 to your computer and use it in GitHub Desktop.
Save Mikr0Tik/24944 to your computer and use it in GitHub Desktop.
map.resources :settings
map.namespace(:settings) do |setting|
setting.resources :units
setting.resources :groups
end
class Settings::Units < SettingsController
end
class Settings::Groups < SettingsController
end
link_to 'Groups', settings_groups_path
--> which leads to SettingsController.show, though i expected: Groups.index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment