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

Hi,

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

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: </td> 43: <td> 44: <%= f.date_select :date_of_birth %> 45: <!-- <%= calendar_date_select_tag "e_date" %> --> 46: </td> 47: <td>City 48: </td>

How do I do this?

/Fredrik

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! %>

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 :slight_smile:

/Fredrik