我有三个模型。
class Location < ActiveRecord::Base
attr_accessible :description
belongs_to :user
has_many :zones
has_many :iteractions, :through => :zones
end
class Zone < ActiveRecord::Base
attr_accessible :description
belongs_to :location
has_many :iteractions
end
class Iteraction < ActiveRecord::Base
attr_accessible :count, :itime
belongs_to :zone
belongs_to :location, :through => :zone
end
所以我试图安装 rails_admin 对我说“未知键:通过(参数错误)”
错误在哪里?