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 font-awesome *= require foundation-datepicker */

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

// //= require foundation-datepicker //

Next, call the datepicker via javascript:

$('.datepicker').fdatepicker()

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