브랜드 많은 이미지는 내 연관입니다. 이미지 클립을중첩 된 양식은 rails_admin에서 작동하지 않습니다
에서 레일 관리자를 사용하여, 나는 내가 브랜드를
class Brand < ActiveRecord:Base
has_many :images, as=> :imageable
end
class Image < ActiveRecord:Base
attr_accessor :image_thumb
attr_accessible :image, :imageable_id, :imageable_type, :image_thumb
has_attached_file :image, :styles => { :medium => "300x300>", :thumb => "100x100>" }
belongs_to :imageable, :polymorphic => true
end
를 추가 할 때 이미지를 추가 할 그러나 이것은 내가 어떻게 내를 달성 할 수
을 얻을 것입니다 골?
attr_accessible은 더 이상 사용되지 않으므로 이제 Rails 4에서이 문제가 해결 되었습니까? – chourobin
havent 아직 시도 : – codeAnand
내가 할 ... accepts_nested_attributes 및 attr_accessible하지만 레일 관리에 중첩 된 모델을 표시하지 않습니다 !! 표시 버튼은 새 인스턴스 만 추가 !!! 어떻게해야합니까!? –