fix for #checks with string values #75

wants to merge 4 commits into


None yet
1 participant

eostrom commented Nov 24, 2011

I found that when I tried to create checkboxes with string values, some of the labels weren't clickable. It's because for values that had spaces in them, the IDs generated for the checkbox inputs also had spaces in them. I fixed it by copying some code from a private method in FormTagHelper.

eostrom added some commits Nov 23, 2011

@eostrom eostrom Fixed bug in #checks when values contain spaces.
but label_tag does, so the input's ID was invalid and also different
from the label's FOR attribute.
@eostrom eostrom Allow views to access checkbox text/value directly.
Useful if you need to represent more information about each choice
than just the label and the input.
@eostrom eostrom Merge branch 'master' of 75a22cc
@eostrom eostrom Merge remote-tracking branch 'rafaeldx7/master' 1cf0cd9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment