I''ve just upgraded rails to 1.2 and now everything breaks when accessing pages that use tzinfo. I get the following errors: uninitialized constant FriendController::Timezone c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:477:in `const_missing'' #{RAILS_ROOT}/app/controllers/friend_controller.rb:22:in `index'' Can someone please tell me how to "require" tzinfo so it can be used in any of my controllers? -- 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?hl=en -~----------~----~----~----~------~----~------~--~---
Could this be something to do with this: Weve fixed a bug that allowed libraries from Rubys standard library to be auto-loaded on reference. Before, if you merely reference the Pathname constant, wed autoload pathname.rb. No more, youll need to manually require ''pathname'' now. (from http://weblog.rubyonrails.org/2006/11/23/rails-1-2-release-candidate-1) If so you''ll have to stick require ''tzinfo'' at the top of files that use it. Fred -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Can someone please tell me how to "require" tzinfo so it can be used in > any of my controllers?require ''tzinfo'' in your config/environment.rb file. -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.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?hl=en -~----------~----~----~----~------~----~------~--~---
thanks. to get it working I had to: #at the top of config/environment.rb require ''tzinfo'' AND #at the top of my controller include TZInfo Now if only I can get the search_generator working now...it simply refuses to load the Search module. IF anyones got a solution or willing to help I''d be happy to throw a few $$ at them for their time. -- 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?hl=en -~----------~----~----~----~------~----~------~--~---