Paperclip-Ausnahme: Paperclip :: AdapterRegistry :: NoHandlerError

Bei Verwendung von Paperclip 3.0.1 in Rails 3.2.2 ist folgender Fehler aufgetreten:

<code>**Paperclip::AdapterRegistry::NoHandlerError** 
(No handler found for "2009-11-29-133527.jpg"):
</code>

In meinem Modell habe ich:

<code>class Product < ActiveRecord::Base
    ...
    has_many :assets 
    accepts_nested_attributes_for :assets
 end

 class Asset < ActiveRecord::Base
     belongs_to :product
     has_attached_file :image,
               :path => ":rails_root/public/system/:attachment/:id/:style/:filename",
               :url => "/system/:attachment/:id/:style/:filename", 
               :styles => { :medium => "300x300>", :thumb => "100x100>" }
  end
</code>

Die Ausnahme wird ausgelöst bei:

<code>def create
     **@product = Product.new params[:product]**
     ...
end
</code>

mit params:

<code>{...,
 "product"=>{"title"=>"wibble1", 
             **"assets_attributes"=>{"0"=>{"image"=>"2009-11-29-133527.jpg"}
                                  },** 
             "description"=>"Who is wibble...", 
             "price"=>"23.45"
            }, 
             "commit"=>"Create Product", 
             ...}
</code>

Weiß jemand, was los ist?

Antworten auf die Frage(11)

Ihre Antwort auf die Frage