Naming problem with singular nested resource

Hi all,

While reworking my application from Rails 2.3 to 3.0beta I found a small bug in route naming. When nesting singular routes it doesn't prefix the nested resource with the first resource in naming. I did some debugging and came up with a patch:

https://rails.lighthouseapp.com/projects/8994/tickets/3911-naming-problem-in-nested-singular-resource#ticket-3911-2

regards, Jan De Poorter