【发布时间】:2015-11-23 16:45:41
【问题描述】:
我有一个使用 gem 'bootstrap-sass' 的 Rails4 应用程序。我正在使用引导日期选择器。
这是 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 - 我不想默认为今天的日期 - 只是在日历上突出显示它
【问题讨论】:
-
您使用的是哪个引导日期选择器,请提供链接
标签: ruby-on-rails twitter-bootstrap ruby-on-rails-4