I'm building an events application, and I want to be able to retrieve each event's attendances by hitting an endpoint structured as in the question title: events/[event_id]/attendances
. How do I declare such a route in routes.rb
?
Asked
Active
Viewed 28 times
-1

modsoussi
- 137
- 11
1 Answers
2
Take a look at the rails guide on nested routing:

John Naegle
- 8,077
- 3
- 38
- 47
-
This is perfect! Thanks! – modsoussi Aug 26 '15 at 21:38