Is there a ''replace'' method or similar for attchment_fu? For instance, I have an image that is uploaded and stored. Now I want to replace it with a different image. I do not want to do a delete and then new - since I need to keep various attributes associated with the previous image. thanks. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Or how would I use update to do this? On Dec 3, 3:28 pm, nextpulse <rob...-pZCIFDiVgMdl57MIdRCFDg@public.gmane.org> wrote:> Is there a ''replace'' method or similar for attchment_fu? > For instance, I have an image that is uploaded and stored. Now I want > to replace it with a different image. > > I do not want to do a delete and then new - since I need to keep > various attributes associated with the previous image. > > thanks.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Dec 3, 2007 5:28 PM, nextpulse <robert-pZCIFDiVgMdl57MIdRCFDg@public.gmane.org> wrote:> > Is there a ''replace'' method or similar for attchment_fu? > For instance, I have an image that is uploaded and stored. Now I want > to replace it with a different image. > > I do not want to do a delete and then new - since I need to keep > various attributes associated with the previous image.Have you considered using acts_as_versioned ? http://wiki.rubyonrails.org/rails/pages/ActsAsVersioned -- Greg Donald http://destiney.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---