dm-paperclip 2.1.2.1

dm-paperclip is a port of the Paperclip plugin by Thoughtbot for use with DataMapper.
dm-paperclip is a port of the Paperclip plugin by Thoughtbot for use with DataMapper.

This plugin is fully compatible with the original ActiveRecord-oriented Paperclip. You could take an existing ActiveRecord database and use it with DataMapper. The module also includes updates validation handling and automatic including of the necessary 'property' fields into your model.

To use it within your models, you need to ensure the three database fields are included. They are {name}_file_name, {name}_content_type, and {name}_file_size. The first two are strings, the final _file_size column is an integer. So if your user model has an avatar field, then you would add avatar_file_name, avatar_content_type, and avatar_file_size.

As with the original Paperclip plugin, it allows processing of thumbnails at the time the record is saved though ImageMagick. It processes the thumbnails through the command-line applications instead of using RMagick.

last updated on:
May 21st, 2008, 12:30 GMT
price:
FREE!
homepage:
rubyforge.org
license type:
GPL (GNU General Public License) 
developed by:
Ken Robertson
category:
ROOT \ Database \ Database APIs
dm-paperclip
Download Button

In a hurry? Add it to your Download Basket!

user rating 20

2.8/5
 

0/5

Rate it!

Add your review!

SUBMIT