私はこのモデルを持っています
class Oferta < ActiveRecord::Base
belongs_to :entidade
has_many :candidatos, :through => :interesses
has_many :interesses, foreign_key: "oferta_id", dependent: :destroy
基本的に私はこのモデルとモデルInteresse
とその複数形を持ってinteresses
いますが、Rails は実際には最後に離陸し、 es
Interess を残していると思います。そして今、このエラーが表示されます:
uninitialized constant Oferta::Interess
interesses
単数形が であることをどのように定義できますinteresse
か? そしてそうではないinteress