I just used attachment_fu for the first time, and it works
quite well.
I have a user-model, and each of them has_one :image (and
the images
belongs_to :user). I have a question on this though: how can
i remove
images? Whenever i set a new image for a user (a user who
already has
an image), then the table with images gets updated
correctly, with the
user_id column of the old image set to null, and the new
image then
has the correct user_id.
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?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
|