I have a form like this one:
<%= form_for People::Selector::GenderReportForm.new, url: selector_download_path do |f| %>
<%= f.text_field :name %>
<%= select_month(Date.today,
{field_name: 'start_month',
prefix: "people_selector_gender_report_form"},
{class: "form-control"}) %>
<% end %>
From my point of view the prefix: "people_selector_gender_report_form"
should be also be able to get from the resource: People::Selector::GenderReportForm.new
Is there a way to build the same form without the prefix
? Or is for example something like prefix: f.prefix
possible? Thanks
Aucun commentaire:
Enregistrer un commentaire