AWS S3, Paperclip missing required :bucket option

后端 未结 5 595
囚心锁ツ
囚心锁ツ 2020-12-06 05:09

I\'m trying to use Paperclip and SWS S3 on Heroku to let users upload images.

I do not have my credentials stored in a yml file. I\'ve followed the instructions on t

5条回答
  •  广开言路
    2020-12-06 05:31

    • Insert into schema.rb table "instructors" this line
    create_table "instructors" do |t|
        ...
        t.string   "bucket"
    end
    
    • Add to controller @instructor[:bucket] = ENV['S3_BUCKET_NAME']
    • Run "rake db:setup"

提交回复
热议问题