class State < ActiveRecord::Base
  has_many :cities
end
class City < ActiveRecord::Base
  has_many :zipcodes
  belongs_to :state
end
class Zipcode < ActiveRecord::Base
  belongs_to :city
end
私がやろうとすると:
State.first.cities.zipcodes
ActiveRecord::Associations::CollectionProxyエラーが発生します。
has_many 関係を使用して複数のレベルを深くする方法を知っている人はいますか? オプションを使用してこれを機能through:させましたが、オプションを使用せずにそれを行う方法はありthrough:ますか?