Rails - Default selected radiobutton in SimpleForm :collection

Viewed 22306

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

4 Answers
Related