嗨,我想替换它:
<%= raw t("settings.pause", :pause_starts_on => f.date_select(:pause_starts_on, {:include_blank => true, :order => [:month, :day, :year], :start_year => Time.now.year}, {:class => "form-control"}).force_encoding("UTF-8"),
:pause_ends_on => f.date_select(:pause_ends_on, {:include_blank => true, :order => [:month, :day, :year], :start_year => Time.now.year}, {:class => "form-control"}).force_encoding("UTF-8"))%>
按标准html5输入类型。
我试过了:
<input type="date" name="pause_starts_on" class="form-control" />
但我收到了这个错误:
When assigning attributes, you must pass a hash as an argument.
出了什么问题?