I have just upgraded to Rails 5 and I have a weird issue while using CarrierWave.
I have the exact same line of code in 3 partials:
<td><%= image_tag article.image_url(:thumb) %> </td>
nil is not a valid asset source
class Article < ActiveRecord::Base
has_many :article_localizations, dependent: :destroy
enum article_type: [:news, :info, :accommodation, :history, :activity]
mount_uploader :image, ImageUploader
The problem was that I was trying to show an image that did not exist.
unless area.image.blank? solved it.