From the database I am loading data, which are displayed in the form (form_for) as the radio inputs.
Support Rails any way, how to always check the first radio input in the group?
From the database I am loading data, which are displayed in the form (
Share
Add this to the first radio_button:
Although if you are using it from a model I’d highly recommend simple form