Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Custom field for individual setting of date and time for Rails :datetime attributes.
JavaScript Ruby CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/assets
lib
Gemfile
LICENSE
README.md
Rakefile
datetimepicker.gemspec

README.md

Datetimepicker

Installation

Add to your application's Gemfile:

gem 'datetimepicker'

Usage

For barebones implementation, you only need to add the require CSS and JS to your application.

# application.js.coffee

#= require datetimepicker
// application.css.scss

@import "datetimepicker"

Then, in simple form, use :as => :datetimepicker

<%= simple_form_for @record do |f| %>
  <% f.input :created_at, :as => :datetimepicker %>
<% end %>
Something went wrong with that request. Please try again.