2015-05-19から1日間の記事一覧
paperclip (4.2.1) class Post < ActiveRecord::Base has_attached_file :attachment, styles: { thumb: "100x100>" } do_not_validate_attachment_file_type :attachment before_post_process :skip_not_image def image? /\Aimage\/.*\Z/ =~ attachment_co…