Thanks for the reply. Sorry for the typo. My email should say bars (a
typo in translation to a question).
map.resources :bars, :controller => 'module/bars
My code actually did have the right pluralization. I copied the code
out of the nesting and tested it unnested. All of the helpers worked
with a module resource it isn't nested.
to be honest I'm not even trying it out with a controller inside a
module because the error you're getting seems to be coming from the
url_helpers, which don't care about controllers as such.
So, at the risk of sending you on a wild goose chase, I'll make a guess:
I'm betting you've got "map.resources :bars" in more than one place
in your routes.rb - am I right?
I tried changing the super controller to another name. That way the
only bars controller would be foo/bars_controller.rb. This still gave
me the same URL helper problems as described above.
I am back to suspecting is modules + nested resources is the
problem???
I'm confident that the names of your controllers isn't the source of
the problem - I can use utterly bogus controller names (and modules)
in map.resources calls and it has no effect on url helpers.
Is this something as simple as that you're not actually passing all
the required information to the url helpers for your nested
resource? As in: