Reputation: 4728
I was using form_for till now and was having this code
<%= f.select :name, options_for_select(%w[Mike Nick Jason Tim]) %>
but what is the equivalent of this in simple_form_for ? I looked at the github doc of simple_form_for but they have not covered this
Thanks
Upvotes: 3
Views: 6184
Reputation: 12818
The doc covers this topic, take a look at Collections
section
<%= f.input :name, :collection => %w[Mike Nick Jason Tim] %>
Upvotes: 10