in the model when you set up associations you can write somethig like
has_many :table2_items, :conditions => [‘some_other_column = ?’, 4]
in the model when you set up associations you can write somethig like
has_many :table2_items, :conditions => [‘some_other_column = ?’, 4]