Pracuję w Ruby on Rails i nie mogę znaleźć sposobu użycia select_month w form_for. Co staram sięUżywanie select_month w formularzu dla
<%= form_for(@farm) do |f| %>
<div class="field">
<%= f.label :harvest_start %><br />
<%= select_month(Date.today, :field_name => 'harvest_start') %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
wich jest wyprowadzanie
["harvest_start", nil]
dziękuję za pomoc. przepraszam, jeśli formatowanie jest nieprawidłowe.
poniższy kod jest tym, co mam do pracy. –
<%= f.collection_select :harvest_start, Farm::MONTHS, :to_s, :to_s, :include_blank => true %>
@ farm.harvest_start = params [: harvest_start] –