I am using Amazon S3 for file uploads and Cloudfront for serving static assets, and in my config/environments/staging.rb, i wrote
ActionController::Base.asset_host = Proc.new { |source|
if source.include?('/assets')
"d1xw0c7m8has5k.cloudfront.net"
else
"#{ENV['FOG_DIRECTORY']}.s3.amazonaws.com"
end
}
ActionMailer::Base.asset_host = Proc.new { |source|
if source.include?('/assets')
"d1xw0c7m8has5k.cloudfront.net"
else
"#{ENV['FOG_DIRECTORY']}.s3.amazonaws.com"
end
}
but in my my mail send by rails application i see image_tag src
attribute empty?
i.e. no image displayed.
what wrong with this setting i could not identify, please help.