0
我有一個Rails4應用程序使用gem 'bootstrap-sass'
。我正在使用引導日期選擇器。Rails 4 Bootstrap DatePicker類今天不工作
這是JavaScript:
$(".datepicker").datepicker
autoclose: true
format: "yyyy-mm-dd"
orientation: "left top"
這是視圖代碼:
<%= f.input :shoot_date, :as => :string, :label => 'Shoot Date:', :input_html => {:class => 'datepicker'}, :wrapper_html => {:style => 'width: 250px'} %>
但是,今天的日期是不突出。在HTML,它應該有:
<td class="day today">23</td>
但它是:
<td class="day">23</td>
的today
丟失。
我在做什麼錯?由於
PS - 我不想默認爲今天的日期 - 只是它強調在日曆上
哪個引導日期選擇器你在使用請給鏈接 – uday