Have radio button's label make selection too?
问题 According to (somewhat official) this guide, I can make a radio button's label make the selection for that radio button too. They say, Always use labels for each checkbox and radio button. They associate text with a specific option and provide a larger clickable region . Unfortunately, I have not been able to get this functionality for my form. Here is my code: <% form_for(@bet) do |f| %> <%= f.label :bet_type %> <%= f.radio_button :bet_type, "moneyline" %> <%= f.label :bet_type_moneyline,