<%= f.association :opportunity_status, :label => "Status", :input_html => {} %>
<%= f.select :source_type, options_for_select(["lead","vteam"],["lead"]) %>
On first line every thing is OK. On second line if I attach label the way I did in first line it show an error.
How can I specify label for select using simpleform?
This is because f.select is not a simple_form method and does not support :label
This should work for you w/ simple form
<%= f.input :source_type, :label => "Lead or VTeam", :collection => ["lead","vteam"], :selected => "lead" %>
Hope this helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With