Friday, October 22, 2010

[Rails] Re: Re: Attribute_fu and Paperclip

Hi Walter,

I'd found the problem.

my model upload has article_id, description, photo_filenane

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…

Anyway, thanks!

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate