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 -- Posted via http://www.ruby-forum.com/.
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-- Posted via http://www.ruby-forum.com/.
try to add helper CalendarHelper in your class Le 16 juil. 06 ? 09:41, remco hh a ?crit :> 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 > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060716/e4e06958/attachment-0001.html
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-- Posted via http://www.ruby-forum.com/.
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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I just installed the plugin on a fresh app on Windows and it worked fine. What gives? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- CalendarHelper
- "uninitialized constant" Error for CalendarHelpper
- any one use calendar_helper GEM?
- RJS and calendar_helper troubles .... tab characters covering web page
- Plugin Problems: const_missing: uninitialized constant Rails::Initializer::CalendarHelper