我用神社测试了tus协议。
我跟着教程this link
但是在创建动作(app / controllers / albums_controller.rb)上出现了错误
undefined method `close' for nil:NilClass Did you mean? clone
在调试错误时发生了这一行
https://github.com/janko-m/shrine/blob/master/lib/shrine.rb#L721
如何修复我的代码?
我的github代码是
https://github.com/ggomagundan/shrine-rails-example
初始化程序:config / initializers / shrine.rb
uploader:app / uploader / image_uploader.rb
appliationjs:app / assets / javascripts / application.js