Label tag wrapping Input tag in radio buttons (Simple_form)
问题 I'm using the gem simple_form with Rails to create my forms. I want to create radio_buttons that have the input tag wrapped in the label tag, for example: <label> <input id="optionsRadios2" name="optionsRadios" value="option2" type="radio"/> Option one </label> but what I get is this: <input id="optionsRadios" name="optionsRadios" value="option2" type="radio"/> <label for="optionsRadios1"> Option one</label> Is there a way to create the input tag inside label tag using wrappers? how? I could