We are trying to set required
in simple_form. The following setup does not work.
<%= f.input :payee_id, :label => t('Payee'), required: true, :collection => BankAccountx.payee_class.where(active: true).map {|x| [x.name, x.id]}, :selected => params[:payee_id], include_blank: true %>
Also tried :input_html => {required: true}
and it did not work as well.
What's the right way to set required
in simple_form?