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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---