I am currently looking for a software/web development job preferably as a Rails-based developer.
Please email me at email@example.com. Thanks in advance for any leads!
Check If Item Has Attachment With Paperclip
Posted by Weston Ganger
Initially I was using:
if @post.image == ""
This will always return false with paperclip because the value will never be nil due the fact of the default_url missing.png
Instead you can check the following way: