RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Setting a default image when using Cloudinary and CarrierWave in Rails

Cloudinary lets you specify a default_image parameter when using the cl_image_tag, along with all of your transformations, to provide a fallback image if one has not been uploaded. If, however, you are using CarrierWave, you’ll likely want to define your transformations and the fallback image just once in your Uploader class, but this is not well documented - here’s how to do it.

https://www.stormconsultancy.co.uk/blog/development/tips-tricks/setting-a-default-image-when-using-cloudinary-and-carrierwave-in-rails/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in