# Calendar\_date\_select\_includes not found

**URL:** <https://www.ruby-forum.com/t/calendar-date-select-includes-not-found/155102>\
**Category:** Rails\
**Created:** [December 8, 2008, 5:06am UTC](https://www.ruby-forum.com/t/calendar-date-select-includes-not-found/155102 "2008-12-08T05:06:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveluscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Post date:** [December 8, 2008, 5:06am UTC](https://www.ruby-forum.com/t/calendar-date-select-includes-not-found/155102/1 "2008-12-08T05:06:38Z")

</div>

Hi -

I tried to install the calendar\_date\_select date picker and it doesn’t  
work for me. I get this error:

undefined local variable or method `calendar\_date\_select\_includes’ for  
#ActionView::Base:0x2640314

Here’s what I did:

sudo gem install calendar\_date\_select  
sudo gem install hoe # because after the above command I couldn’t start  
my server

# after installing hoe I can now start my server

Then in my environment.rb I put:  
config.gem “calendar\_date\_select”

And this in my template file:  
\<%= javascript\_include\_tag “prototype” %\>  
\<%= calendar\_date\_select\_includes %\> # it’s erroring on this line. It  
doesn’t know where to find calendar\_date\_select\_includes

Even though calendar\_date\_select is in my gems directory my app isn’t  
picking it up. How do I debug something like this? And does anybody  
have any suggestions for a fix?

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![steveluscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Post date:** [December 8, 2008, 10:58am UTC](https://www.ruby-forum.com/t/calendar-date-select-includes-not-found/155102/2 "2008-12-08T10:58:04Z")

</div>

After you edit any files in config folder, please restart your  
server(Like  
Mongrel or Webrick), try again 🙂

On Mon, Dec 8, 2008 at 12:06 PM, Steven L. \<  
removed\_email\_address@domain.invalid\> wrote:

> \<%= calendar\_date\_select\_includes %\> # it’s erroring on this line. It
> 
> >

–  
TWRUG Blog:  
[http://blog.rubyonrails.org.tw](http://blog.rubyonrails.org.tw)

CFC on Rails:

> **[CFC on Rails](http://zusocfc.blogspot.com)**
>
> 火車請別撞我

Only two surfaces of a box:  
[http://blog.pixnet.net/zusocfc](http://blog.pixnet.net/zusocfc)

---

<div class="post-metadata">

**Author:** ![steveluscher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3bc359/32.png) [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Post date:** [December 8, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/calendar-date-select-includes-not-found/155102/3 "2008-12-08T15:30:08Z")

</div>

Billy H. wrote:

> After you edit any files in config folder, please restart your  
> server(Like  
> Mongrel or Webrick), try again 🙂

I’ve restarted several times.

I see the calendar\_date\_select\_includes method in my gems directory  
/usr/local/lib/ruby/gems/1.8/gems/calendar\_date\_select-1.13/lib/calendar\_date\_select/includes\_helper.rb

1. How do I configure my rails app to find this code? When I installed  
the gem it installed fine so I’d expect my app to be able to find it.

2. The difference between extensions, plugins, and gems isn’t clear to  
me. Do they all have an init.rb and how is the init.rb run? If I run  
the init.rb in  
/usr/local/lib/ruby/gems/1.8/gems/calendar\_date\_select-1.13 I get these  
errors but maybe I’m running it wrong. I was just thinking that the  
init.rb might cause rails apps to find this gem:

./lib/calendar\_date\_select.rb:1:in `require': no such file to load -- calendar_date_select/calendar_date_select.rb (LoadError) from ./lib/calendar_date_select.rb:1 from init.rb:1:in`require’  
from init.rb:1
