Re: [paperclip] Updating pictures

1 view
Skip to first unread message
Message has been deleted

Gordon Yeong

unread,
Jul 22, 2010, 8:11:45 PM7/22/10
to papercli...@googlegroups.com
well, if it was for a profile picture, perhaps you would like to

if ( new picture is valid ) then
   upload new picture
   assign user profile object to point at the new picture
   delete the new picture
end


Hope it helps.

Gordon


On 23 July 2010 08:49, Chim <desi...@gmail.com> wrote:
Hi,

Most of the tutorials teach how to upload files, but none of them
treat the uploading issue. For instance, if I have a profile and I
want to change my picture, what is the best way to treat this in
rails?

Cheers,

Chim

--
Individuals over processes. Interactions over tools.

Agile Rails training from thoughtbot, the makers of Paperclip, Clearance, Shoulda, & Factory Girl:
http://thoughtbot.com/services/training

The Paperclip group:
http://groups.google.com/group/paperclip-plugin

To post to this group, send email to
papercli...@googlegroups.com

To unsubscribe from this group, send email to
paperclip-plug...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages