เจอ Plugin ที่ใช้ทำ ปฏิทิน ชื่อ calendar_date_select Download แล้วนำไปไว้ใน vendor/plugins
เนื่องจากต้องใช้ prototype.js แล้วทำการ Include Plugin เข้ามา
โดยนำ Code ข้างล่างไปไว้ที่ layouts
<%= javascript_include_tag :defaults %>
<%= calendar_date_select_includes “silver” %>
ใน calendar_date_select_includes จะเลือกสีได้ซึ่งมี “red” or “blue”, or “silver”, or nil For The Default!
เวลาต้องการใช้ก็
<%= calendar_date_select ‘obj_model’, ‘field’, :year_range => 20, :buttons => false, :embedded => true %>
ที่มา : code.google.com