How to work with rack using ruby for storing image on cloudinary with gem carrierwave -


i using rack framework active record , there no rails , when upload image cloudinary using carrierwave gem getting following error.

unexpected error while processing request: uninitialized constant cloudinary::carrierwave::storage::rails

based off of this ,you can't use carrierwave gem without rails. should able like:

you can use meta-programming in ruby.

just override class of carrierwave , create storage.rb file :

cloudinary::carrierwave::storage.class_eval  /// code here... end 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -