Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nil input to image_tag throws exception #11

Closed
quidproquo opened this issue Apr 24, 2012 · 1 comment
Closed

nil input to image_tag throws exception #11

quidproquo opened this issue Apr 24, 2012 · 1 comment

Comments

@quidproquo
Copy link

This was't throwing an exception before the cloudinary gem was installed. In this case the reference is resolving to nil.

<% image_tag( some_ref.try(:to_s) ) %>

/gems/cloudinary-1.0.12/lib/cloudinary/utils.rb:66:in cloudinary_url' /gems/cloudinary-1.0.12/lib/cloudinary/helper.rb:118:incloudinary_url'
/gems/cloudinary-1.0.12/lib/cloudinary/helper.rb:12:in cl_image_tag' /gems/cloudinary-1.0.12/lib/cloudinary/helper.rb:29:inimage_tag'
app/views/tour_books/_client_form.html.erb:10:in `block in _app_views_tour_books__client_form_html_erb___1659920891812517767_82968620'

@nadavs
Copy link
Contributor

nadavs commented Apr 25, 2012

Fixed in the latest released GEM (v1.0.16)

@nadavs nadavs closed this as completed Apr 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants