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
Post a Comment