cl_image_tag yields "undefined local variable or method `cl_image_tag' for main:Object" in Rails view
Trying to use cl_image_tag in a simple Rails view, and getting:
undefined local variable or method `cl_image_tag' for main:Object
From the rails console, I can do helper.cl_image_tag and the appropriate arguments and get a well-formed HTML image tag back with the correct Cloudinary URL. (Using cl_image_tag by itself in the console produces the same error, even after using include ActionView::Helpers)
I know the gem was installed correctly, as I have a function that uses the Uploader and that works just fine.
Thoughts?
-
Hi Scott, sorry for the very late reply, we have noticed that this request was left unattended. I guess this is not relevant anymore. For the reference - To use 'cl_image_tag' directly please include `CloudinaryHelper`.
0
Post is closed for comments.
Comments
1 comment