Forum: Italian Ruby user group paperclip error

E2143230301529c42a8c8d0288e334d1?d=identicon&s=25 Roberto Sacchetti (roberto_s)
on 2014-03-18 11:23
Ciao ragazzi ho un form con 4 attachment file;
Eseguo il form con ajaxForm passando i dati in JSON, fin qui tutto bene,
se eventualmente non voglio caricare l'immagini(attach), paeprclip mi da
questo errore:

Paperclip::AdapterRegistry::NoHandlerError
No handler found for ""

il mio form รจ questo:

<%= form_for @showcase,  :html => { :multipart => true, class:
"form-horizontal sidebar-form", :role => 'form' } do |f| %>
    <%= f.hidden_field :id  %>
    <%= f.hidden_field :published, :value => true  %>
    <%= f.hidden_field :shop_id, :value => current_user.shop.id  %>
    <%= f.text_field :title, {:class => 'form-control
sidebar-form-input', :id =>'showcases_title', :placeholder => '|Nome del
prodotto'} %>
    <%= f.text_field :price, {:class => 'form-control
sidebar-form-input', :id =>'showcases_price', :placeholder => '|Prezzo'}
%>
    <%= f.text_area :description, {:class => 'form-control
sidebar-form-input-textarea', :id =>'showcases_descr', :placeholder =>
'|Descrizione del prodotto', :style =>"height: 160px;"} %>
    <%= f.file_field :photo, {:class => 'filestyle', :id
=>'showcases_photo', :placeholder => 'immagine', :data =>
'classButton="btn btn-default sidebar-form-input-file"'} %>
    <%= f.file_field :photo1, {:class => 'filestyle', :id
=>'showcases_photo_1', :placeholder => 'immagine', :data =>
'classButton="btn btn-default sidebar-form-input-file"'} %>
    <%= f.file_field :photo2, {:class => 'filestyle', :id
=>'showcases_photo_2', :placeholder => 'immagine', :data =>
'classButton="btn btn-default sidebar-form-input-file"'} %>
    <%= f.file_field :photo3, {:class => 'filestyle', :id
=>'showcases_photo_3', :placeholder => 'immagine', :data =>
'classButton="btn btn-default sidebar-form-input-file"'} %>
    <%= f.file_field :photo4, {:class => 'filestyle', :id
=>'showcases_photo_4', :placeholder => 'immagine', :data =>
'classButton="btn btn-default sidebar-form-input-file"'} %>
    <%= f.text_area :detail, {:class => 'form-control
sidebar-form-input-textarea', :id =>'showcases_detail', :placeholder =>
'|Dettaglio del prodotto', :style =>"height: 160px;"} %>
<% end %>
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.