2013-02-20 2 views
0

를로드하지 :태양 흑점 검색 포함 has_and_belongs_to_many 협회가 포함 지시어에도 불구하고로드되지 않습니다 다음 태양 흑점 레일 시나리오에서 has_and_belongs_to_many 협회

has_and_belongs_to_many :predecessors, :join_table => 'next_phrases', :class_name => "Phrase", :foreign_key => 'next_id', :association_foreign_key => 'previous_id' 


searchable :include =>[:predecessors] do 
    integer :predecessor_ids, :multiple => true,:references => Phrase 
end 

우리가 뭔가 잘못을하고 있거나 버그인가? 이 predecessor_ids는 유형 배열의 내부 필드는 사실 함께 할 수있는 뭔가가있을 손

답변

0

에 의해 .reload : (전임자)

우리가 self.association를 호출하는 경우 작동 않습니다. 이름이 integer : predecessors로 변경되면 작동합니다.