I'm using the calendar_date_select gem.
It was working fine in my rails 2.3.x versions.
But now I am trying to upgrade it to 3.0.10
Really stuck on error undefined method 'calendar_date_select_includes'
for all pages.
Gemfile just has:
gem 'rails', '3.0.10'
gem 'mysql2', '~> 0.2.11'
gem "acts_as_list"
gem "simple_form"
gem "calendar_date_select"
gem "haml"
My views/layouts/application.html.haml page has this (Note: haml !)
%head
= stylesheet_link_tag 'contam/default.scss'
= stylesheet_link_tag 'main.css'
= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"
= javascript_include_tag "jQueryUI/js/jquery-ui-1.8.11.custom.min.js"
%script
var $j = jQuery.noConflict();
= javascript_include_tag :defaults
= calendar_date_select_includes "silver"
Also my styles are not being loaded.
It appears that the official Calendar Date Select gem is still not Rails 3 ready, as discussed in a previous SO answer.
However, a fork provided by paneq does support Rails 3, so if you change your Gemfile from
gem "calendar_date_select"
to
gem 'calendar_date_select', :git => 'http://github.com/paneq/calendar_date_select.git'
it should get you back up and running. I haven't personally used CDS in Rails 3, instead I migrated to formtastic and formtastic_datepicker_inputs which requires jQueryUI's date picker.