나는 한 다음 모델 내가 관리자 대시 보드에 BusinessOwner 모델을 추가하려고했습니다 레일 활성
class Owner < ActiveRecord::Base
has_many :business_owners
has_many :businesses, :through => :business_owner
end
class Business < Active Record::Base
has_many :business_owners
has_many :businesses, :through => :business_owner
end
class BusinessOwner < ActiveRecord::Base
belongs_to :owners
belongs_to :businesses
end
많은 관계로 많은 관리자 : 응용 프로그램에서 파일을 만듭니다
rails generate active_admin:resource BusinessOwner
라고 business_owners/admin/ 사업자를 보려고하면 다음 오류가 발생합니다.
uninitialized constant BusinessOwner::Owners
Extracted source (around line #1):
1: render renderer_for(:index)
많은 관계가 많은 활성 관리자를 사용하는 방법을 누군가에게 알려 줄 수 있습니까?
당신의 바위. 내 잘못이야. 네, 한 두 가지 테스트가있었습니다. –