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

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -