search_form_for @searcher, {defaults: local_assigns} do |f|¶ ↑
= f.standard_fields
<% attributes.each do |attr|-%> <% if attr.include?(“approval_status@”) or attr.include?(“page@”) or attr.include?(“humanize_model@”)-%> <% elsif attr.include?(“e$”) -%>
= f.input :<%=attr[0].chomp('e$')%>, as: :enum
<% elsif attr.include?(“bet1”) -%>
= f.input :<%=attr[0].chomp('bet1')%>, as: :between
<% elsif attr.include?(“bet$”) -%>
= f.input :<%=attr[0].chomp('bet$')%>, as: :between
<% elsif attr.include?(“yes$”) -%>
= f.input :<%=attr[0].chomp('yes$')%>, as: :yesno
<% else -%>
= f.input :<%=attr[0]%>
<% end -%> <%end-%>
= f.action_buttons