When I upload an image using paperclip and s3 storage. The app works fine locally, I've made the required changes to use s3 for heroku
, but on heroku the issue remains continues:
Gemfile
ruby '2.0.0'
gem 'rails', '4.0.3'
gem 'aws-s3'
gem 'aws-sdk', '< 2.0'
gem 'paperclip', "~> 3.5.3"
store.rb
class Store < ActiveRecord::Base
has_attached_file :logo,
styles: {
thumb: ["40x40#", :png],
small: ["400x400>", :png]},
default_url: "#{Rails.root}/app/assets/images/missing.jpg",
storage: :s3,
s3_credentials: "#{Rails.root}/config/s3.yml",
path: "/store_logos/:style/:id/:filename"
end
config/s3.yml
development:
bucket: app-dev
access_key_id: ***********
secret_access_key: ***************
production:
bucket: app-pro
access_key_id: ***********
secret_access_key: ***************
I tried this link but no luck.
Any help appreciated