Skip to content

Instantly share code, notes, and snippets.

@vitaly
Created November 21, 2013 14:22
Show Gist options
  • Save vitaly/7582343 to your computer and use it in GitHub Desktop.
Save vitaly/7582343 to your computer and use it in GitHub Desktop.
concern :v2 do
namespace :user do
resources :devices, only: [] do
resources :services, only: [:show, :update], controller: 'device_services'
resources :users, only: [] do
resources :services, only: [:show, :update], controller: 'device_user_services'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment