Calendar_helper

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

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

try to add
helper CalendarHelper
in your class

Le 16 juil. 06 à 09:41, remco hh a écrit :

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

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?

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

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs