sferik/rails_admin — Issue #847: attachment's thumbs
Author: anherdene
Created: 2011-11-20 10:37:19+00:00
State: open

i have Article and Attachment(image) models
# article.rb
attr_accessible :title, :description, :attachments_attributes

has_many :attachments, :as => :attachable

accepts_nested_attributes_for :attachments

#
attr_accessible :description, :image

belongs_to :attachable, :polymorphic => true

mount_uploader :image, FileUploader
#