NameError (uninitialized constant Paperclip::Storage::S3::AWS):

前端 未结 4 734
情歌与酒
情歌与酒 2020-12-02 21:31

I\'m trying to incorporate images into my web app and I keep running into this error after removing quite a few features. It came down to my \'create\' application controlle

4条回答
  •  情书的邮戳
    2020-12-02 22:24

    There is official solution Use paperclip from this branch: it works with aws-sdk versions above 2

    gem 'paperclip', :git=> 'https://github.com/thoughtbot/paperclip', :ref => '523bd46c768226893f23889079a7aa9c73b57d68'
    

    just add :s3_region parameter to your paperclip s3 config

    works for me

提交回复
热议问题