There was an error while loading. Please reload this page.
Tags provides a convenient way to build an HTML element with type="radio":
type="radio"
<%= f.RadioButtonTag({name: "MyDrink"}) %>
That produces:
<label> <input class=" form-control" name="MyDrink" type="radio" checked /> </label>
You can easily change the label content with
<%= f.RadioButtonTag({name: "MyDrink", label: " Water"}) %>
<label> <input class=" form-control" name="MyDrink" type="radio" checked /> Water </label>