의 복수의 이름을 정의 나는이 모델 기본적으로루비 - 모델 또는 표
class Oferta < ActiveRecord::Base
belongs_to :entidade
has_many :candidatos, :through => :interesses
has_many :interesses, foreign_key: "oferta_id", dependent: :destroy
나는이 모델 및 모델 Interesse
과 복수가에게이 그 interesses
하지만 난 레일 실제로에서 es
을 이륙 생각 끝내고 나에게 Interess를 남겨주세요. 그리고 지금은 날이 오류를 제공합니다
uninitialized constant Oferta::Interess
어떻게 interesses
에 단수가 interesse
이라고 정의 할 수있다? 아니요 interess
는 http://stackoverflow.com/questions/1185035/how-do-i-override-rails-naming-conventions –
유용한 링크를 참조하십시오. 감사! – Lokuzt