0
매우 여기 세드릭 있는지,하지만 난 시도하고 내 S3 버킷에 이미지를 업로드 할 때이 오류를 현재 내 dev 환경에서업로드 클립 이미지
NameError in PostsController#create
uninitialized constant AWS::Core::ClientLogging
Rails.root: /home/richardlewis/Rails/myblog
Application Trace | Framework Trace | Full Trace
app/controllers/posts_controller.rb:41:in `create'
임 시험이 얻을 수 없습니다. 이
#Paperclip and aws
gem "paperclip", "~> 3.0"
gem 'aws-sdk'
gem 'aws-s3'
이미지 모델
Gemfile 내 현재 설정입니다
class Image < ActiveRecord::Base
belongs_to :imageable, polymorphic: true
attr_accessible :photo
has_attached_file :photo, :styles => { :small_blog => "250x250#", :large_blog => "680x224#", :thumb => "95x95#" },
:storage => :s3,
:url => ":s3_domain_url",
:s3_protocol => 'http',
:path => "/images/:id/:style.:extension",
:s3_credentials => {
:bucket => ENV['AWS_BUCKET'],
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
}
end
내 ENV 변수가 env.rb 파일에 저장하고
사람이 건너왔다 초기화 내에서로드 전에?
'aws-sdk'와'aws-s3'의 어떤 버전이'bundle list'에 나타 납니까? –
aws-sdk (1.11.1) 및 aws-s3 (0.6.3), 또한 paperclip은 (3.3.1)입니다. 버전에 문제가있을 수 있다는 것을 읽었지 만 지금 해결되어 보석으로 업데이트되었다고 생각하십니까? – Richlewis
오케이 그래서 @RyanBigg를 업데이트하십시오. 내 클립 클립 버전을 최신 (3.5.1)으로 업데이트했는데 문제가 해결되었습니다. source = https://github.com/aws/aws-sdk-ruby/issues/251 – Richlewis