Utilizzando Paperclip 3.0.1 a 3.2.2 rotaie ho ottenuto questo errore:eccezione Paperclip: Paperclip :: :: AdapterRegistry NoHandlerError
**Paperclip::AdapterRegistry::NoHandlerError**
(No handler found for "2009-11-29-133527.jpg"):
Nel mio modello ho:
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
L'eccezione è sollevato a:
def create
**@product = Product.new params[:product]**
...
end
con params:
{...,
"product"=>{"title"=>"wibble1",
**"assets_attributes"=>{"0"=>{"image"=>"2009-11-29-133527.jpg"}
},**
"description"=>"Who is wibble...",
"price"=>"23.45"
},
"commit"=>"Create Product",
...}
Qualcuno sa cosa sta succedendo?
sfortunatamente, questo non risolve il problema per me. Lo stesso problema aggiungendo attr_accessible: title,: description,: price,: assets_attributes, –