Skip to content

Instantly share code, notes, and snippets.

@plcosta
Created May 12, 2018 11:39
Show Gist options
  • Save plcosta/036ad754485eaf8ccabbd8002e73e9a7 to your computer and use it in GitHub Desktop.
Save plcosta/036ad754485eaf8ccabbd8002e73e9a7 to your computer and use it in GitHub Desktop.
Nested Routes
resources :courses, except: :show do
resources :chapters, except: :show do
resources :lessons, except: :show do
resources :attachments, except: :show
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment