Paperclip - Default Style per Style? Possible
问题 I'm using paperclip, and have several styles: :styles => {:large => "300x300>", :medium => "150x150>", :small => "50x50>", :thumb => "30x30>" } The issue is default_stype, only applies to one of the sizes... :default_style => :thumb, :default_url => url here.... How can I set default_stypes for each style type? so if I call: <%= image_tag @user.profile_pic.url(:large) %> The LARGE style has a default_url? Thanks 回答1: I Would suggest to use has_attached_file :xyz, :url => "/assets/:id", :path