remcoh
July 15, 2006, 11:31pm
1
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
remcoh
July 16, 2006, 9:41am
2
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
remcoh
July 16, 2006, 12:46pm
3
try to add
helper CalendarHelper
in your class
Le 16 juil. 06 à 09:41, remco hh a écrit :
remcoh
August 4, 2006, 2:01pm
4
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
remcoh
October 11, 2006, 3:15am
5
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?
remcoh
October 11, 2006, 3:26am
6
I just installed the plugin on a fresh app on Windows and it worked
fine. What gives?
remcoh
October 11, 2006, 8:05am
7
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.