You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bbenezech edited this page Nov 9, 2011
·
6 revisions
Automatically detected.
One thing you may need is to add a delete method in your model.
Paperclip does not include it, you'll need to add it manually.
RailsAdmin will detect it and add a checkbox.
article.rb
classArticle < ActiveRecord::Basehas_attached_file:asset# add a delete_<asset_name> method: attr_accessor:delete_assetbefore_validation{self.asset.clearifself.delete_asset == '1'}end