我有以下表格。我实例化了@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}