input with :collection doesn't output correct HTML for radio buttons when the values are booleans #59

Closed
jnicklas opened this Issue Sep 30, 2009 · 4 comments

Comments

Projects
None yet
3 participants

Given something like this:

 <%= form.input :exclusive, :as => :radio, :collection => [['foo', true], ['bar', false]], :hint => t('pool.hint.membership') %>

The input tag for the generated radio button would have the id without the 'false' appended, whereas the label for, would be correct. Like this:

<label for="pool_exclusive_false">
  <input type="radio" value="false" name="pool[exclusive]" id="pool_exclusive" checked="checked"/>
  foo
</label>
Owner

justinfrench commented Sep 30, 2009

nice find!

Owner

justinfrench commented Oct 3, 2009

Actually, I can't reproduce this in the specs :( Can you tell me what version you're using, etc?

Contributor

grimen commented Oct 12, 2009

Investigated, and it seems we can close this one.

jnicklas:

just close it. It's not that important anyway, and since it doesn't seem to be reproducible, I don't think it's worth it to investigate it further.
Owner

justinfrench commented Oct 12, 2009

Closing!

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment