views:

18

answers:

1

I'm using attribute_fu and paperclip to add multiple images to a specific record.

This is working great when creating a new record but when I want to add new images to an existing record through a common scaffold update, the images upload but replace the existing images.

Any thoughts or advice?

A: 

hi

I'd found maybe the problem.

my model upload has article_id, description, photo_file_nane

In my partial: _upload.rhtml

if i just put:

<div class="upload">
<%= f.file_field :photo %>
<%= f.remove_link "remove" %>
</div>

when i update, it delete my photos.

but if i put:

<div class="upload">
<%= f.text_field :description %>
<%= f.file_field :photo %>
<%= f.remove_link "remove" %>
</div>

it works fine…

Strange…

kinggordo