I use paperclip in my app, but my controller tests are failing because of:
BlogsControllerTest#test_should_update_blog:
Paperclip::AdapterRegistry::NoHandle
For this line of code:
Paperclip::Attachment.default_options[:default_url] = "/images/default_image.png"
Paperclip is looking for images under /public/images/default_image.png
so you have defined style big
and thumb
. Paperclip will look for img in public/images/thumb/default_image.png
or public/images/big/default_image.png
depending what style will you call in <% image_tag @model.image.url(:style) %>
.
gotcha! If you want model to use :default_url
don't send :image
in params. remove image from params and lets see how it goes`