2013-10-21 1 views
0

Active Directory와 함께 Active Directory를 사용하고 있습니다. habtm 관계가 있지만 조인 테이블이 기본 테이블이 아닙니다. 모델 이름을 바꾸면 옵션이 없습니다필터에 대한 활성 관리자 사용자 지정 조인 테이블

ActiveAdmin.register Person do 
    filter :events, :join_table => 'events_staff' 
end 

: 나는

class Person < ActiveRecord::Base 
    has_and_belongs_to_many :events, :join_table => 'events_staff' 
end 
class Event < ActiveRecord::Base 
    has_and_belongs_to_many :staff, :class_name => 'Person', :join_table => 'events_staff' 
end 

내가 활성 관리자를 사용

, 내가 뭔가를하고 싶었어요. 어떻게해야합니까?

답변

관련 문제