raiseArgumentError,"Don't know what to do: top is #{top.inspect}"
end
returnvalue
end
deftype_conflict!(klass,value)
raiseTypeError,"Conflicting types for parameter containers. Expected an instance of #{klass} but found an instance of #{value.class}. This can be caused by colliding Array and Hash parameters like qs[]=value&qs[key]=value. (The parameters received were #{value.inspect}.)"
super("Could not find the source association(s) #{source_reflection_names.collect(&:inspect).to_sentence:connector=>'or'} in model #{through_reflection.klass}. Try 'has_many #{reflection.name.inspect}, :through => #{through_reflection.name.inspect}, :source => <name>'. Is it one of #{source_associations.to_sentence:connector=>'or'}?")
super("Could not find the source association(s) #{source_reflection_names.collect(&:inspect).to_sentence:two_words_connector=>' or ',:last_word_connector=>', or '} in model #{through_reflection.klass}. Try 'has_many #{reflection.name.inspect}, :through => #{through_reflection.name.inspect}, :source => <name>'. Is it one of #{source_associations.to_sentence:two_words_connector=>' or ',:last_word_connector=>', or '}?")