Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

fix for #checks with string values #75

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

eostrom
Copy link

@eostrom 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.

but label_tag does, so the input's ID was invalid and also different
from the label's FOR attribute.
Useful if you need to represent more information about each choice
than just the label and the input.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant