Skip to content

Custom field for individual setting of date and time for Rails :datetime attributes.

License

Notifications You must be signed in to change notification settings

Mario1988/datetimepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Custom field for individual setting of date and time for Rails :datetime attributes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published