search for: late_item

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

Did you mean: late_items
2006 Jul 31
2
ambiguous column name in has_many :through
In my application model I have three classes: Accounts, Projects, and Items class Accounts < ActiveRecord::Base has_many :items, :through => :projects, :source => :items has_many :late_items, :class_name => ''Item'', :through => :projects, :conditions => [''due_on < ?'', Time.now], :source => :items end class Projects < ActiveRecord::Base has_many :items belongs_to :account end class Item < ActiveRecord::Base belongs_to :pro...