Forum: Ruby on Rails onchange does not work for select helper

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5cd805eda9338f43deaa498a22588a9f?d=identicon&s=25 Desert Penguin (desertpenguin)
on 2007-05-21 19:35
The select helper for fields_for does not properly handle settings for

In other words, fails to add any onchange options, but
x.text_field does

<%= c.text_field :carrier, :size=>"30", :onchange => "return
limitslist();" %>
correctly yields
<input id="coverage0_carrier" type="text" size="30" onchange="return
limitslist();" name="coverage0[carrier]"/>

<%= :cvg_desc, %w{ GL AL EL zz }, :onchange => "return
limitslist();" %>
<select id="coverage0_cvg_desc" name="coverage0[cvg_desc]">

Is this a known bug?

Thanks for any help
This topic is locked and can not be replied to.