My question is similar to this one but for a Rails app.
I have a form with some radio buttons, and would like to associate labels with them. The label
form helper only takes a form field as a parameter, but in this case I have multiple radio buttons for a single form field. The only way I see to do it is to manually create a label, hard coding the ID that is auto generated for the radio button. Does anyone know of a better way to do it?
For example:
true %> Email SMS
This generates something like:
Email SMS
What I want: