Hi,
I have added these lines in my model, but it does not work.
before_thumbnail_saved do |record, thumbnail|
thumbnail.update_attribute(:filename,
thumbnail.public_filename(thumbnail.thumbnail.to_sym))
end
It keeps the filenames as if they were not touched.
Basically I want to store the full image path in the database table.
–
Anil
You should probably post this question to the attachment_fu Google
Group instead of the general Rails group:
http://groups.google.com/group/attachment_fu
That being said, I’m seeing the same issue with Rails 2.1 and the most
recent version of attachment_fu, pulled from Subversion (revision
3183). The after_resize callback is working fine, but the
before_thumbnail_saved callback doesn’t appear to be called, at all.
Nate