Hullo!
I have the following route:
map.connect ''users/:login'', :controller =>
''users'', :action => ''view''
When I enter or manually generate a URL like "/users/hendrik", it
works as expected. However, anything involving url_for :login =>
''hendrik'' (like link_to, etc.) generates URLs like
"/?login=hendrik".
Did I horribly misunderstand something, or just stumble upon some
weird bug?
Interestingly enough, url_for spits out URLs correctly when I change
the route to this:
map.connect ''users/:login'', :controller =>
''topics''
(''topics'' being another controller). Now the generated URLs
are
correct, but obviously the route itself is not the one I want.
Just in case, here''s my complete list of routes:
map.connect '''', :controller => ''topics''
map.connect ''users/:login'', :controller =>
''users'', :action => ''view''
map.connect '':controller/service.wsdl'', :action =>
''wsdl''
map.connect '':controller/:action/:id''
Any ideas?
Thanks,
Hendrik