I use Paperclip to manage user uploaded images on a site that is fully supported by HTTPS. To avoid the dumb security warnings on IE7 / IE8, I also need to serve these images via SSL. I usually draw my images using the following:
<%= image_tag @product.image.url(:large) %>
Where
class Product < ActiveRecord::Base has_attached_file :image, :styles => { :large => {:geometry => "616x450#"} }, :storage => :s3, :s3_credentials => {:access_key_id => "xxx", :secret_access_key => "xxx"}, :path => ":attachment/:id/:style/:basename.:extension", :bucket => CONFIG['s3_media_bucket'], :default_url => "/assets/image_missing.png"
and generated image url:
http:
Is there a magic βClipβ option to change it to:
https:
ruby-on-rails ruby-on-rails-3 amazon-s3 paperclip
cailinanne Oct 26 '11 at 1:17 2011-10-26 01:17
source share