百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

bootstrap3-datetimepicker-rails

> 后端框架
开源

这个 gem 包含了适用于 Rails 3.1+ 资产管道的 bootstrap-datetimepicker。

289 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

这个 gem 包含了适用于 Rails 3.1+ 资产管道的 bootstrap-datetimepicker。

bootstrap3-datetimepicker-rails

This gem packages the bootstrap-datetimepicker for the Rails 3.1+ asset pipeline.

Eonasdan's fork of tarruda's bootstrap-datetimepicker is actively maintained and works with Bootstrap3.

momentjs-rails is a required dependency.

Installation

Add these lines to your application's Gemfile:

ruby
gem 'momentjs-rails', '>= 2.9.0'
gem 'bootstrap3-datetimepicker-rails', '~> 4.17.47'

And then execute:

bash
$ bundle

Or install it yourself:

bash
$ gem install momentjs-rails
$ gem install bootstrap3-datetimepicker-rails

To start using the bootstrap-datetimepicker plugin in your Rails application, enable it via the asset pipeline.

If your server is running, you will need to restart Rails before using the gem.

Add the following to your JavaScript manifest file (application.js):

javascript
//= require moment
//= require bootstrap-datetimepicker

If you want to include a localization, also add:

javascript
//= require moment/

Add the following to your style sheet file:

If you are using SCSS, modify your application.css.scss

scss
// import bootstrap-sprockets before bootstrap if using bootstrap >= 3.2
@import 'bootstrap-sprockets';
@import 'bootstrap';
@import 'bootstrap-datetimepicker';

If you're using plain CSS, modify your application.css

css
*= require bootstrap
*= require bootstrap-datetimepicker

Usage

Check out the documentation at: http://eonasdan.github.io/bootstrap-datetimepicker/

Problems

Clone https://github.com/TrevorS/bs3dp-test and try to reproduce your issue.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Issues· 15 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyasset-pipelinebootstrap3bootstrap3-datetimepicker-railsruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架