formtastic_jquids

Created: 2011-07-12 16:00
Updated: 2016-10-25 21:19
License: mit

README.md

FormtasticJquids

Based off of David Oshiro's FormtasticCalendarDateSelect (https://github.com/dyohi/formtastic_calendar_date_select), this gem is ment to add the jquids (https://github.com/NickLaMuro/jquids) jQueryUI datepicker to the formtastic framework.

Installation

###1. Install the gem

$ gem install formtastic_jquids

###2. Add it to your application

This gem assumes that you have both the formtastic and jquids gems installed.

####Rails 2:

In config/environment.rb:

config.gem "formtastic"
config.gem "jquids"
config.gem "formtastic_jquids"

####Rails 3:

In your Gemfile:

gem "formtastic"
gem "jquids"
gem "formtastic_jquids"

NOTE: Order in your gemfile DOES matter. If you call if before either of the other two plugins, the server will not start (something that will be looked into for future releases).

Usage

Where ever there is a field that needs to have a jquids datepicker, just a :as => :jquids:

<% semantic_form_for @task do |form| %>
  <% form.inputs do %>
    <%= form.input :due_date, :as => :calendardateselect %>
  <% end %>
<% end %>
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more