Closed dtt101 closed 10 years ago
Given the following model code that enables delete with paperclip
# delete picture attr_accessor :delete_picture before_validation { self.picture.clear if self.delete_picture == '1' }
rails_admin uses this to present a delete button under the picture
if the admin code is:
field :picture do jcrop_options aspectRatio: 140.00/90.0 fit_image true end
the delete button is not present, though for a standard paperclip declaration:
field :picture, :paperclip
It is.
Apologies - read code and this fixed it:
field :picture do jcrop_options aspectRatio: 140.00/90.0 fit_image true delete_method :delete_picture end
Given the following model code that enables delete with paperclip
rails_admin uses this to present a delete button under the picture
if the admin code is:
the delete button is not present, though for a standard paperclip declaration:
It is.