I have a nested resource that is generating the route: /events/id/
However, I would like to know if I can do something like this: /events/
With that said I have three questions:
- If I can do that, would the events id still be passed and give me
access to the proper registrations related to the event?
- How does this look in my routes file?
- Would there need to be a change in my controllers?
You may find the code I am working with at: github.com/TheCodeBoutique/
The Code Boutique