Hi guys,
I'm adding some test coverage to Rails-Core (yay heckle!), and noticed
some odd things in the routing code.
Using the latest trunk, if I do something like this:
map.resource :assertions, :name_prefix => 'badass_'
I get these routes:
formatted_badass_assertions
badass_assertions
formatted_badass_edit_assertions
badass_edit_assertions
formatted_badass_new_assertions
badass_new_assertions
Does it seem like the name_prefix should always be coupled with the
resource name to anyone else? So formatted_edit_badass_assertions vs
formatted_badass_edit_assertions?
And that brings up another point actually.. Why when using name_prefix
does edit_assertion become edit_assertionS? The tests say that it
_should_ be the controller name (plural) instead of the singular name,
but this seems wrong.
Ideas? Is this a bug?