I have just upgraded to Rails 5 and I have a weird issue while trying to show an image.
I have the exact code I had for Rails 4:
<%= image_tag article
I hope this code snippet will help those future readers.
<%= image_tag image.picture.url, size: "100x100" unless image.picture.url.blank? %>
without that unless image.picture.url.blank? part of the code,
unless image.picture.url.blank?
"nil is not a valid asset source"
shows up when uploading empty image.