# Rails 2.x CalendarDateSelect

**URL:** <https://www.ruby-forum.com/t/rails-2-x-calendardateselect/125422>\
**Category:** Rails\
**Created:** [January 8, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/rails-2-x-calendardateselect/125422 "2008-01-08T23:30:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wakazula](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/a698b9/32.png) [@Wakazula](https://www.ruby-forum.com/u/Wakazula)\
**Post date:** [January 8, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/rails-2-x-calendardateselect/125422/1 "2008-01-08T23:30:40Z")

</div>

Recently I have taken up learning rails 2.0

Unfortunately the SuperInplaceControls (the Rails 2 version of  
CalendarDateSelect) plugin has been giving me some trouble. It seems  
that rails does not realize the plugin has been installed.

Does anyone have any thoughts as to what is happening here.

STEPS

1. Installed the SuperInplaceControls (the rails 2 version of  
CalendarDateSelect)  
ruby script/plugin install  
[http://super-inplace-controls.googlecode.com/svn/trunk/super\_inplace\_controls/](http://super-inplace-controls.googlecode.com/svn/trunk/super_inplace_controls/)

2. Confirmed that the plugin was installed to /vendor/plugins/  
super\_inplace\_controls

3. Updated the edit view accordingly  
\<% form\_for(@advert) do |f| %\>  
\<%= f.calendar\_date\_select :start\_at, :embedded =\> true  
%\>  
\<% end %\>

OUTPUT  
JavaScript Error: `CalendarDateSelect` is undefined

---

<div class="post-metadata">

**Author:** ![Wakazula](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/a698b9/32.png) [@Wakazula](https://www.ruby-forum.com/u/Wakazula)\
**Post date:** [January 9, 2008, 12:01am UTC](https://www.ruby-forum.com/t/rails-2-x-calendardateselect/125422/2 "2008-01-09T00:01:09Z")

</div>

I finally figured it out If your looking for answers…

I forgot to include the JavaScript references in the layout page:

\<%= javascript\_include\_tag :defaults %\>

\<%= calendar\_date\_select\_includes %\>
