Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 979 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 979 Bytes

foundation-datepicker-rails

A ruby gem that implements the foundation-datepicker functionality. The project can be found on its Github page.

##Installation Add this to your Gemfile:

gem 'foundation-datepicker-rails'

and run bundle install.

##Usage Include these lines in app/assets/stylesheets/application.css.scss:

/*
 *= require foundation-datepicker
 */

Include this lines in app/assets/javascripts/application.js:

//
//= require foundation-datepicker
//

Note: to see the arrows and icons, please include font-awesome or foundation-icons-sass-rails

Next, call the datepicker via javascript:

$('.datepicker').fdatepicker()

There are numerous options for the datepicker. You can find them here.