This project is archived and is in readonly mode.

#2937 ✓committed
Nobuhiro IMAI

id for radio_button behavior

Reported by Nobuhiro IMAI | July 22nd, 2009 @ 05:39 AM | in 2.3.4

Hello,

is the following behevior intentional?

Loading development environment (Rails 2.3.2)
>> irb helper
>> @foo = "foo"
>> puts(radio_button("foo", "hash", true))
<input id="foo_hash_true" name="foo[hash]" type="radio" value="true" />
                   ^^^^^
>> puts(radio_button("foo", "hash", false))
<input id="foo_hash_false" name="foo[hash]" type="radio" value="false" />
                   ^^^^^^

Loading development environment (Rails 2.3.3)
>> irb helper
>> @foo = "foo"
>> puts(radio_button("foo", "hash", true))
<input id="foo_hash_true" name="foo[hash]" type="radio" value="true" />
                   ^^^^^ same as 2.3.2
>> puts(radio_button("foo", "hash", false))
<input id="foo_hash" name="foo[hash]" type="radio" value="false" />
                   ? different from 2.3.2

Yes, I know that the 3rd argument should be string, and
this comes from around add_default_name_and_id_for_value.

Thanks,

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages