Tuesday, August 18, 2009

Calendar Date Select gem for Rails


sudo gem install "calendar_date_select"

# config/environment.rb
config.gem "calendar_date_select"

# app/views/layouts/application.erb
<%= calendar_date_select_includes 'silver' %>

# app/views/assessments/_form.html.erb
<%= calendar_date_select_tag 'assessment[schedule]', Time.now, :time => true, :id => 'assessment_schedule' %>

Project homepage: http://code.google.com/p/calendardateselect/
Demos: http://electronicholas.com/calendar

No comments:

Blog Archive