Matt Todd
2007-Jul-17 17:08 UTC
Plugin Problems: const_missing: uninitialized constant Rails::Initializer::CalendarHelper
I''m receiving this error when I try to start Mongrel on my local machine. I''ve checked my Rails, Rake, and Gem versions, as well as all of the other gems I''m using. http://pastie.caboo.se/79503 The situation is that I simply started an empty Rails app and generated an empty plugin. I added the plugin into the ActionView::Base class in init.rb and really only added one empty method to the plugin. There is a controller and the routes have been set up to default to the bare-bones controller''s action index. I do not get the error if I disable the plugin from loading, but if it is not disabled, I get this error and Mongrel fails to load. I doublechecked all of my naming and I don''t see any duplicate names. If anybody could give me any substantive leads in which way to address this issue, I''d appreciate it. I just haven''t found much help via Google, Google Groups, wikis, or in IRC regarding this issue, or plugins in general. Thanks, Matt --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Todd
2007-Jul-17 18:30 UTC
Re: Plugin Problems: const_missing: uninitialized constant Rails::Initializer::CalendarHelper
After further experimentation, the error occurs when I execute the init.rb file: ActionView::Base.send :include, CalendarHelper I tried experimenting with :extend, with changing the CalendarHelper to class and back, and nothing appears to change the error. It appears to be an error with how it is being added into the Rails::Initializer module... Help! --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Todd
2007-Jul-17 20:29 UTC
Re: Plugin Problems: const_missing: uninitialized constant Rails::Initializer::CalendarHelper
It appears the problem was simply that I was not requring in the library file, which I assumed was being done automatically. Whoops. init.rb ---------------- require ''calendar'' ActionView::Base.send :include, CalendarHelper --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---