Hello, I have the following output when changing form Active Record 1.0.1 to ActiveRecord 1.6: [error] C:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_controller/support/dependencies.rb:24:in `depend_on'': uninitialized constant ActiveRecord::Mixins (ScriptError)\r [error] \tfrom C:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_controller/support/dependencies.rb:30:in `associate_with''\r [error] \tfrom C:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_controller/support/dependencies.rb:48:in `require_association''\r [error] \tfrom C:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.4.0/lib/action_controller/support/dependencies.rb:48:in `require_association''\r [error] \tfrom C:/dev/ruby/lib/ruby/gems/1.8/gems/activerecord-1.6.0/lib/active_record/associations.rb:580:in `require_association_class''\r [error] \tfrom C:/dev/ruby/lib/ruby/gems/1.8/gems/activerecord-1.6.0/lib/active_record/associations.rb:218:in `has_many_without_reflection''\r [error] \tfrom (eval):5:in `has_many''\r [error] \tfrom C:/dev/granul.at/app/models/user.rb:7\r the user.rb looks as follows: class User < ActiveRecord::Base has_many :post_votes, :foreign_key => ''voter_id'' has_many :topic_subscriptions, :dependent => true has_many :posts has_many :topic_reads, :dependent => true def self.inheritance_column() ''role'' end include ErrorRaising, RForum::Localization, ActiveRecord::Mixins::Touch attr_accessor :old_password, :new_password, :retyped_password # methods [...] end maybe you got an idea what i should do - im still pretty new to rails -- thanks, Roman mailto:rot-hxbVNg70ZfReoWH0uzbU5w@public.gmane.org
David Heinemeier Hansson
2005-Feb-02 16:07 UTC
Re: Error when changing from AR 1.0.1 to 1.6
> include ActiveRecord::Mixins::TouchThat''s your culprit. The timestamping capabilities of what used to be called ActiveRecord::Mixins::Touch is now available automatically. Remove that line. -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://macromates.com/ -- TextMate: Code and markup editor (OS X) http://www.loudthinking.com/ -- Broadcasting Brain