Currently I have Steps which belong to Procedures:
map.resources :procedures, :has_many => :steps
And this works fine for me, I get URLs that look like /procedures/3/steps/5.
However, suppose I wanted to add one more layer, Figures that belong to steps, to get this: /procedures/3/steps/5/figures/1
That being a monster of a URL aside, how exactly would I do the routing for this?
Edit: Maybe I shouldn't put that aside, should I do this? Figures are simply containers for images which I will display in the Steps, so it's not like the user will actually "visit" any Figure, I just need to fetch the images from the Figures.