8000 GitHub - osuka/jquery_datepicker: Rails 3 plugin that allows you to select dates from a calendar
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

osuka/jquery_datepicker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Datepicker Rails plugin

This simple gem allows you to add a date picker field into your views.

Installation

As this gem is using jQuery Ui plugin, be sure that you are already using jquery into your project. In order to install it:

  • Add into your Gemfile

gem ‘jquery-rails’

  • Execute this command to install the needed js files

rails generate jquery:install –ui

  • Insert into your Gemfile:

gem ‘jquery_datepicker’

Usage

Add this to your view.

<%= datepicker_input “user”,“birthday” %>

Where “user” is your model name and “birthday” the name of the datefield.

You can also use it with the form helper like:

<% form_for(@user) do |f| %> <%= f.datepicker ‘birthday’ %> <%= f.submit ‘Create’ %> <% end %>

About

Rails 3 plugin that allows you to select dates from a calendar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%
0