Sha256: be539e31199900e04b2427328a00e0a0309cecb6d7d005949f3dc476c1924cf3

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

# bootstrap3-datetimepicker-rails

[![Gem Version](https://badge.fury.io/rb/bootstrap3-datetimepicker-rails.png)](http://badge.fury.io/rb/bootstrap3-datetimepicker-rails)

This gem packages the [bootstrap-datetimepicker](https://github.com/Eonasdan/bootstrap-datetimepicker) for the Rails 3.1+ asset pipeline.

Eonasdan's fork of tarruda's [bootstrap-datetimepicker](https://github.com/tarruda/bootstrap-datetimepicker) is
actively maintained and works with [Bootstrap3](http://getbootstrap.com).

[momentjs-rails](https://github.com/derekprior/momentjs-rails) is a required dependency.

## Installation

Add these lines to your application's Gemfile:
```
gem 'momentjs-rails', '~> '2.5.0'
gem 'bootstrap3-datetimepicker-rails', '~> 2.1.20'
```

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.

Add the following to your Javascript manifest file (`application.js`):
```js
//= require moment
//= require bootstrap-datetimepicker
```

If you want to include a localization, also add:
```js
//= require moment/<locale>
//= require locales/bootstrap-datetimepicker.<locale>
```

Add the following to your stylesheet file:

If you are using SCSS, modify your `application.css.scss`
```scss
@import 'bootstrap';
@import 'bootstrap-datetimepicker';
```

If you're using just plain CSS, modify your `application.css`
```css
*= require bootstrap
*= require bootstrap-datetimepicker
```

## Usage

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

## 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap3-datetimepicker-rails-2.1.20.1 README.md