2013-09-06 1 views
0

내 모델에는 has_and_belongs_to_many 관계가 있습니다. 내가 마크 업 다음 참조 모델의 호텔 및 HotelRoomsTypes rails_admin has_and_belongs_to_many association

class Hotel < ActiveRecord::Base 
    attr_accessible hotel_room_types_attributes  
    has_and_belongs_to_many :hotel_room_types,:class_name => "HotelRoomType" 
    accepts_nested_attributes_for :hotel_room_types, :allow_destroy => true 
end 

class HotelRoomType < ActiveRecord::Base 
    attr_accessible :name 
    has_and_belongs_to_many :hotels 
end 

내가 rails_admin에서 연결을 만들려고하고 beetween 관계가 : enter image description here

가 생성 후, rails_admin 그 모델에 연결을 표시하지 않습니다. 누구든지 그 문제를 해결했거나 rails_admin에 대한 패치를 발견 했습니까?

답변