【发布时间】:2014-01-22 22:37:59
【问题描述】:
我正在尝试实现我的表单之一的引导日期选择器。我已经尝试过这些路径 https://github.com/Nerian/bootstrap-datepicker-rails//github.com/lubieniebieski/bootstrap-datetimepicker-rails 并且引导 css 没有显示。
目前我正在使用此版本 https://github.com/lubieniebieski/bootstrap-datetimepicker-rails 并在我的 application.js 中使用此 /= 需要 bootstrap-datetimepicker 并在我的 boostrap_and_overidecss.scss 中使用此 @import 'bootstrap-datetimepicker';。以下是我的脚本:
<script type="text/javascript">
$(document).ready(function(){
$('#insurance_start_date').datepicker();
});
</script>
任何照亮这个灵魂的光都将不胜感激!
【问题讨论】:
-
您的问题解决了吗?我是this datepicker 的作者。如果我能帮助你,请告诉我
-
没有。我暂时离开了,只使用了 jQuery datepicker,但如果我真的回来了,我会确保更新这篇文章。
标签: ruby-on-rails twitter-bootstrap datepicker twitter-bootstrap-3