fix for #checks with string values #75

Open
wants to merge 4 commits into
from

Conversation

Projects
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.
cc779d4
@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.
09714de
@eostrom eostrom Merge branch 'master' of https://github.com/ernie/meta_search 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