# Calendar\_helper

**URL:** <https://www.ruby-forum.com/t/calendar-helper/98552>\
**Category:** Rails\
**Created:** [July 15, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/calendar-helper/98552 "2006-07-15T23:31:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![remcoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Post date:** [July 15, 2006, 11:31pm UTC](https://www.ruby-forum.com/t/calendar-helper/98552/1 "2006-07-15T23:31:14Z")

</div>

Hi, anyone ever tried the calendar plugin?  
i can’t get it to work:

i did:  
ruby script/plugin install  
[http://topfunky.net/svn/plugins/calendar\_helper](http://topfunky.net/svn/plugins/calendar_helper)  
ruby script/generate calendar\_styles

and then generated a controller calendar\_controller with a method

def monthly  
end

in monthly.rhtml i put:

\<%=calendar(:year =\> 2005, :month =\> 6)%\>

if i try to run i get:  
undefined method `calendar’ for #\<#Class:0x3a7fdb0:0x3a7fd80\>

am i forgetting something?

thanks

---

<div class="post-metadata">

**Author:** ![remcoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Post date:** [July 16, 2006, 9:41am UTC](https://www.ruby-forum.com/t/calendar-helper/98552/2 "2006-07-16T09:41:20Z")

</div>

i am getting a little desperate!  
I tried 500 examples and everytime i get

undefined method `calendar’

it must be something stupid i am forgetting,  
is there any action required to activate a plugin or something?

if i only found a simple working example…

remco hh wrote:

> Hi, anyone ever tried the calendar plugin?  
> i can’t get it to work:
> 
> i did:  
> ruby script/plugin install  
> [http://topfunky.net/svn/plugins/calendar\_helper](http://topfunky.net/svn/plugins/calendar_helper)  
> ruby script/generate calendar\_styles
> 
> and then generated a controller calendar\_controller with a method
> 
> def monthly  
> end
> 
> in monthly.rhtml i put:
> 
> \<%=calendar(:year =\> 2005, :month =\> 6)%\>
> 
> if i try to run i get:  
> undefined method `calendar’ for #\<#Class:0x3a7fdb0:0x3a7fd80\>
> 
> am i forgetting something?
> 
> thanks

---

<div class="post-metadata">

**Author:** ![remcoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Post date:** [July 16, 2006, 12:46pm UTC](https://www.ruby-forum.com/t/calendar-helper/98552/3 "2006-07-16T12:46:30Z")

</div>

try to add  
helper CalendarHelper  
in your class

Le 16 juil. 06 Ã 09:41, remco hh a Ã©crit :

---

<div class="post-metadata">

**Author:** ![remcoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Post date:** [August 4, 2006, 2:01pm UTC](https://www.ruby-forum.com/t/calendar-helper/98552/4 "2006-08-04T14:01:26Z")

</div>

Remco Hh:

I had the same problem.

Once i restarted my WebBrick server it worked just fine.

Also, adding “helper CalendarHelper” (as suggested previously) did not  
work for me. Just generated a different kind of error message.

Hope this helps.

Ben

Remco Hh wrote:

> i am getting a little desperate!  
> I tried 500 examples and everytime i get
> 
> undefined method `calendar’
> 
> it must be something stupid i am forgetting,  
> is there any action required to activate a plugin or something?
> 
> if i only found a simple working example…
> 
> remco hh wrote:
> 
> > Hi, anyone ever tried the calendar plugin?  
> > i can’t get it to work:
> > 
> > i did:  
> > ruby script/plugin install  
> > [http://topfunky.net/svn/plugins/calendar\_helper](http://topfunky.net/svn/plugins/calendar_helper)  
> > ruby script/generate calendar\_styles
> > 
> > and then generated a controller calendar\_controller with a method
> > 
> > def monthly  
> > end
> > 
> > in monthly.rhtml i put:
> > 
> > \<%=calendar(:year =\> 2005, :month =\> 6)%\>
> > 
> > if i try to run i get:  
> > undefined method `calendar’ for #\<#Class:0x3a7fdb0:0x3a7fd80\>
> > 
> > am i forgetting something?
> > 
> > thanks

---

<div class="post-metadata">

**Author:** ![remcoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Post date:** [October 11, 2006, 3:15am UTC](https://www.ruby-forum.com/t/calendar-helper/98552/5 "2006-10-11T03:15:37Z")

</div>

barberboy wrote:

> Once i restarted my WebBrick server it worked just fine.

Not for me. I’m on OS X running Lighttpd. I’ve restarted several times.  
Even rebooted my computer. Also tried Webrick. All no go.

I’ve reinstalled the plugin, too. Any ideas?

---

<div class="post-metadata">

**Author:** ![remcoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Post date:** [October 11, 2006, 3:26am UTC](https://www.ruby-forum.com/t/calendar-helper/98552/6 "2006-10-11T03:26:03Z")

</div>

I just installed the plugin on a fresh app on Windows and it worked  
fine. What gives?

---

<div class="post-metadata">

**Author:** ![remcoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Post date:** [October 11, 2006, 8:05am UTC](https://www.ruby-forum.com/t/calendar-helper/98552/7 "2006-10-11T08:05:32Z")

</div>

Got it. I was operating inside a controller called Calendar. Who has,  
you guessed it! A helper named calendar\_helper.rb. Thus my (empty)  
helper was overwriting the plugin helper. Neat.
