dm-paperclip 2.1.2.1

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

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
2.8/5 20
DEVELOPED BY:
Ken Robertson
HOMEPAGE:
rubyforge.org
CATEGORY:
ROOT \ Database \ Database APIs
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

requirements

#Paperclip plugin #Paperclip port #ruby script #Ruby #Paperclip #plugin #port

Add your review!

SUBMIT