List Info

Thread: Re: Attachment_fu: how to remove images?




Re: Attachment_fu: how to remove images?
country flaguser name
Germany
2008-02-23 13:29:53
Peter wrote:

> What i want is ofcourse to remove the old image (which
has no
> references to any user anymore) from the database and
the filesystem,
> and the same for the thumbnail that was created with
it.
> 
> Does attachment_fu have methods for this?

Did you try: user.image.destroy  or user.image.delete
(bypass 
callbacks?)

hth

ilan


-- 
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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )