I’ve litte problem with radiobuttons in SimpleForm.
When i use
= f.association :manufactureType, :collection => ManufactureType.all, :as => :radio
Rails simply generates few radiobuttons, but none of them are selected.
I want first radiobutton to be selected by default. How can i make it?
Thanks
If you pass in the manufacture types into the view, you can do the following:
Or