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:

Jan De Poorter