search for: joinassoci

Displaying 1 result from an estimated 1 matches for "joinassoci".

2008 Nov 12
5
dynamic condition for has_one and eager loading issue
...ng the following error when doing a count. Seems that self is not really my model class anymore.... Does anybody know how I can get that up and running? Thanks a lot in advance NoMethodError (undefined method `account_id'' for #<ActiveRecord::Associations::ClassMethods::JoinDependency::JoinAssociation: 0x4d5bf5c>): C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/associations.rb:1621:in `interpolate_sql'' (eval):1:in `interpolate_sql'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/associations.rb:1600:in `associatio...