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-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
-~----------~----~----~----~------~----~------~--~---
|