0

I tested tus protocol with shrine.

and I followed tutorial this link

But on create action(app/controllers/albums_controller.rb) ocuured error

undefined method `close' for nil:NilClass Did you mean? clone

On debugging error occured this line

https://github.com/janko-m/shrine/blob/master/lib/shrine.rb#L721

How to fix my code?

My github code is

https://github.com/ggomagundan/shrine-rails-example

initializer : config/initializers/shrine.rb

uploader: app/uploader/image_uploader.rb

appliationjs: app/assets/javascripts/application.js

kai
  • 492
  • 3
  • 18
  • Could you be more specific? What does `on create controller` mean? – Sebastian Sep 27 '16 at 08:46
  • @Vasile it means ``app/controller/albums_controller.rb`` create action – kai Sep 27 '16 at 08:47
  • I uploaded an image and I'm not getting any errors. – Sebastian Sep 27 '16 at 08:52
  • @Vasile Really?.. :( ok. I try test one more time – kai Sep 27 '16 at 08:55
  • There was an bug in Shrine, where if the storage raised an error while attempting to download the file, Shrine would fail with this error, shadowing the storage error. This is now [fixed](https://github.com/janko-m/shrine/commit/da2d4ab105777bdea5792e8742e1968cd69692c8). Try using the Shrine master, and let me know what error do you get now (preferrably with a stack trace). – Janko Sep 27 '16 at 11:41
  • @janko-m Thx :) Now working~ – kai Sep 27 '16 at 15:48

0 Answers0