bootstrap_datepicker_tag

Bootstrap datepicker helper method for no object controls. It's wrapper for bootstrap-datepicker-rails gem (https://github.com/Nerian/bootstrap-datepicker-rails).

Todo: make helper for object of SimpleForm or component

Installation

Add this line to your application's Gemfile:

gem 'bootstrap_datepicker_tag'

And then execute:

$ bundle install

Add this line to app/assets/stylesheets/application.css

*= require bootstrap-datepicker

Add this line to app/assets/javascripts/application.js

//= require bootstrap-datepicker

Todo: make autoinstall bootstrap picker to application

Usage

datepicker_input_tag(name, value, options = {})

Currently it supports only three options: :language, :format, :autoclose. Sorry guys, but I required only these ones for my work.