how to set default image from cloudinary?
I am using Ruby on Rails language. In my code, I want to set a default image if user has not uploaded any image. How do I set default image (i.e. which I will set) from cloudinary?
1
-
You can display a default image for any case where an image isn't present for a user. This is done by setting the
default_image
parameter to the desired image, for example in Rails:<%= cl_image_tag("non_existing_id.png", :default_image => "my_default_image.png") %>
For more information:
http://cloudinary.com/blog/placeholder_images_and_gravatar_integration_with_cloudinary0
Post is closed for comments.
Comments
1 comment