# How do I get the CalendarDateSelect plugin to work i Rails 2.0.2

**URL:** <https://www.ruby-forum.com/t/how-do-i-get-the-calendardateselect-plugin-to-work-i-rails-2-0-2/130688>\
**Category:** Rails\
**Created:** [March 1, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/how-do-i-get-the-calendardateselect-plugin-to-work-i-rails-2-0-2/130688 "2008-03-01T22:29:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fredrik\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bc79bd/32.png) [@Fredrik\_K](https://www.ruby-forum.com/u/Fredrik_K)\
**Post date:** [March 1, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/how-do-i-get-the-calendardateselect-plugin-to-work-i-rails-2-0-2/130688/1 "2008-03-01T22:29:55Z")

</div>

Hi,

I am new to rails and found areally nice looking plugin for date  
selection here:

[http://code.google.com/p/calendardateselect/](http://code.google.com/p/calendardateselect/)

I have installed it according to the instructions, but when I try to  
change one of the date selections to use the plugin, I get something  
like:

undefined method `calendar\_date\_select\_tag’ for  
#ActionView::Base:0x176aa4c

Extracted source (around line #45):

42:   
43:   
44: \<%= f.date\_select :date\_of\_birth %\>  
45:   
46:   
47: City  
48:

How do I do this?

/Fredrik

–  
“Give up learning, and put an end to your troubles.”

---

<div class="post-metadata">

**Author:** ![Fredrik\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bc79bd/32.png) [@Fredrik\_K](https://www.ruby-forum.com/u/Fredrik_K)\
**Post date:** [March 2, 2008, 9:15am UTC](https://www.ruby-forum.com/t/how-do-i-get-the-calendardateselect-plugin-to-work-i-rails-2-0-2/130688/2 "2008-03-02T09:15:49Z")

</div>

Do you have the includes in your view? This should be either in your  
main view (application.html.erb, or in the specific view where you  
need the calendar):

\<%= calendar\_date\_select\_includes “red” # or “blue”, or “silver”, or  
nil for the default! %\>

---

<div class="post-metadata">

**Author:** ![Fredrik\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bc79bd/32.png) [@Fredrik\_K](https://www.ruby-forum.com/u/Fredrik_K)\
**Post date:** [March 3, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/how-do-i-get-the-calendardateselect-plugin-to-work-i-rails-2-0-2/130688/3 "2008-03-03T22:34:10Z")

</div>

Thanks!

I don’t know what I did wrong, but reinserted teh same code I used  
before solved the problem.  
Thanks for making me try it again 🙂

/Fredrik

On Sun, Mar 2, 2008 at 9:15 AM, Jeff C.man [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > like:  
> > 47: City  
> > 48:
> > 
> > How do I do this?
> > 
> > /Fredrik
> > 
> > –  
> > “Give up learning, and put an end to your troubles.”

–  
“Give up learning, and put an end to your troubles.”
