Saturday, September 13, 2008

Rails 2.1, attachment_fu and MiniMagick

I've just spent 2 hours trying to get thumbnails to work with Rails 2.1 and attachment_fu using MiniMagic as image processor.

This is how the before_thumbnail_saved callback works now:

before_thumbnail_saved do |thumbnail|
record = thumbnail.parent
thumbnail.item_id = record.item_id
end

No comments: