SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Thursday, June 19, 2008

Date time picker for ruby on rails

for date time options i am using the datetime pciker.i got this plugin from code.google
http://code.google.com/p/calendardateselect/
just download source file from it.Then untar or unzip the file and put it in your plugins directory.Then in your layout include this line at the top

<%= calendar_date_select_includes "silver" %>.
you can choose silver,red,plain,blue also.
Then
for your datefield you can specfiy the pattern whick u needed.
For my requirement i have given like this.
<%= f.calendar_date_select :Dateofbirth ,:time => false,:year_range =>60%>

For more details you can get from http://code.google.com/p/calendardateselect/

Thanks to the owner timcharper for developed this plugin