Convert attachment_fu plugin in Rails 3.x