Could someone have a look at my patch for ticket #6677:
It's a simple fix to the behaviour of URL helpers when passed bare
objects as parameters: by pairing objects with dynamic route segments
starting at the end of the list instead of the beginning we can fall
back on the classic URL generation behaviour of filling missing segments
from the request parameters.
The practical upshot is that this small change allows the
scaffold_resource generated code to work unchanged when nested within
another resource - at the moment much of the scaffold route generation
calls need altering if you want to use nested resources.
It also provides a simple solution to get simply_helpful's form_for
extension working with nested routes.
I think this should be in 1.2. Thoughts?