Forum: Ruby on Rails help please!

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1a161d16b292cbacee7b4563bd0c72e8?d=identicon&s=25 Alon Goldshuv (alon)
on 2007-01-31 18:12
Hi,

I'll appreciate insight on this one... it's causing me some pain on my
production env.

<%= link_to "something",
  :controller => "somecontroller",
  :action => 'someaction',
  :id => someid,
  :favorite => is_a_favorite %>

I added a boolean :favorite to the URL arguments.

THis has always worked well under my dev environment (webrick) and
produced:

<a href="/somecontroller/someaction/someid?favorite=false>

but now, under production, with lighttpd it ignores the added argument!

<a href="/somecontroller/someaction/someid">

why?

thanks!
Alon.
1a161d16b292cbacee7b4563bd0c72e8?d=identicon&s=25 Alon Goldshuv (alon)
on 2007-01-31 18:21
I just found out that when the value is "true" it actually adds it to
the URL, however when it's "false" it doesn't! why is that?
This topic is locked and can not be replied to.