Paperclip exception : Paperclip::AdapterRegistry::NoHandlerError

This Error is raised because you aren’t giving Paperclip a correct class. It’s a just a String.

You should receive something like this in params

    @headers= "Content-Disposition: form-data; name=\"asset[image]\";
      filename=\"2009-11-29-133527.jpg\"\r\nContent-Type: image/jpg\r\n",

And you should have something like this in yout View (in HAML, very simplified):

= form_for @product, html: { multipart: true } do |f|
  = f.fields_for :asset do |asset_form|
    = asset_form.file_field :image

Remember to set your form to multipart: true.

Leave a Comment