If a start my development/production server, and access a page with the
following params {:controller => ‘c’, :action => ‘a’, :lang => ‘en’ },
then a link to {:action => ‘a2’} will actually link to {:controller =>
‘c’, :action => ‘a2’, :lang => ‘en’ } unless i manually specify :lang =>
nil. That alone is fine with me, in fact it’s great. However when
running functional tests the lang param is not included in the generated
link.
eg. if we have a route ‘:lang/:controller/:action’ and we access page
en/c/a, the link on that page will be to en/c/a2 in dev/prod mode yet
c/a2 in test mode. Why is the lang param missing only in test mode? Is
this a rails bug? Has anyone else experienced similar problems?
Golly