possible bug in url_for()

Andrew Selder <rails-mailing-list@...> writes:

url_for(:action => "test", :params => params)

The url generated by this code is: /a/a/b/test?.........

The module name a got repeated. To get this to behave right, you need to manually add :controller => nil to list of options to url_for.

I seem to remember there being a reason for that, to do with how controllers are rooted to something or other (I forget). In any case, it definitely goes against principle of least surprise so I'd call it a bug too