Shopify/batman — Issue #186: Nested resources
Author: roastedamoeba
Created: 2011-10-18 04:28:17+00:00
State: open

It would be great if Batman supported nested resources ([here's how Rails 3 does it](http://guides.rubyonrails.org/routing.html#nested-resources)):

@resources 'books', ->
@resources 'chapters', ->
@resources 'sections'

In my particular use-case, the reason I need to do this (as opposed to flattening out the routes) is because when I'm working with `sections`, I need access to the `book.id`, which is not available on the `Book` model.

I see that it's already possible to specify child `@member` / `@collection` routes, so hopefully it's at least technically possible to implement this.