dm-paperclip

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

dm-paperclip Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Ken Robertson
  • Publisher web site:
  • http://rubyforge.org/projects/dm-paperclip/

dm-paperclip Tags


dm-paperclip Description

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. Requirements: · Ruby · RubyGems


dm-paperclip Related Software