search for: tinklocontroller

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

Did you mean: tinklo_controller
2006 Jun 19
3
Strange behavior of :through association.
...ny :hosts, :through => :person end class Person < ActiveRecord::Base belongs_to :house has_many :hosts, :dependent => true end Now when I try to do: @hosts = House.find_by_id(params[:namas]).hosts from my controller I get this: ActiveRecord::HasManyThroughAssociationNotFoundError in TinkloController#index Could not find the association :person in model Host RAILS_ROOT: script/../config/.. /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/reflection.rb:169:in `check_validity!'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/associations/has_many_...