简单一句
<%= date_select 'time_price', 'from_month', {:discard_day => true,:include_blank=>true,:use_month_numbers=>true}%>