Rails 5 on heroku forgets files stored with paperclip and turbolinks: No route matches

前端 未结 2 358
天命终不由人
天命终不由人 2021-01-29 02:24

I have a blog with file up-/download via paperclip 5.1.0 and turbolinks 5.0.1. Upload without validation works fine now, but download is only working for a short period after up

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-29 03:03

    New git version of paperclip gem now works with aws-sdk-s3 gem, add this to Gemfile:

    #Paperclip
    gem 'paperclip', git: 'git://github.com/thoughtbot/paperclip.git'
    

提交回复
热议问题