私は以下のフォームを持っています。@month @month = ' ' をインスタンス化し、コレクションは、選択した月を表示して下に表示したい月のリストです。ページを更新するか、ajax を使用する必要があると考えています。ページを更新すると、@month が失われます。
どうすればいいですか?
= simple_form_for @month, html: { :class => 'form-inline' } do |f|
= f.input :month, label: 'Report Month', collection: month_select
= submit_tag 'refresh', class: 'btn btn-mini'
.row
.span11
%h4 The number of different Households served during: #{@month}