public
Description: This is yet another little date picker integration for rails. To make date selection easier.
Homepage: http://scoop.cheerfactory.co.uk/2008/07/18/wee-date-picker-rails-plugin/
Clone URL: git://github.com/pyrat/wee_date_picker.git
pyrat (author)
Tue Aug 11 08:04:23 -0700 2009
commit  692e06dd66da4dc63a99910a420ecce3af542138
tree    e85b8e62031276ea92da07b17aa27dc2884a340b
parent  97371a87c7544b141ad41baab72fdfe08612a59e
name age message
file .gitignore Fri Jul 18 00:52:09 -0700 2008 Addition fo gitignore [pyrat]
file MIT-LICENSE Fri Jul 18 00:50:07 -0700 2008 First commit [pyrat]
file README Fri Jul 18 00:55:35 -0700 2008 Improvements to README [pyrat]
file Rakefile Fri Jul 18 00:50:07 -0700 2008 First commit [pyrat]
directory files/ Tue Aug 11 08:04:23 -0700 2009 updates to wee date picker [pyrat]
file init.rb Fri Jul 18 00:50:07 -0700 2008 First commit [pyrat]
file install.rb Wed Aug 06 14:18:52 -0700 2008 adding install code [pyrat]
directory lib/ Tue Aug 11 08:04:23 -0700 2009 updates to wee date picker [pyrat]
directory tasks/ Fri Jul 18 00:50:07 -0700 2008 First commit [pyrat]
directory test/ Fri Jul 18 00:50:07 -0700 2008 First commit [pyrat]
file uninstall.rb Fri Jul 18 00:50:07 -0700 2008 First commit [pyrat]
README
WeeDatePicker
=============

This is a super simple datepicker for your rails apps. It is essentially just a packaged version of DatePicker v2.9 by 
frequency-decoder.com with rails helpers for easy integration.


Install
=======

Currently the contents of the files directory should be copied manually to your public directory. I would like to write 
a rake task to do this for me. Please do this and submit a patch if you have time.

Example
=======

In the *head* section of the layout.

<%= yield :date_includes %>

In the template.

<%= load_date_picker %>

Then for each date field you need to do the following. *Remember*: field_names have to be unique on your page.

<%= date_picker :start_date, Date.today %>

Where the first argument is the field_name and the second is the initial value. This must be a date object.


Copyright (c) 2008 Alastair Brunton, released under the MIT license