public
Description: A new merb plugin for adding image and file upload storage capabilities
Home | Edit | New

Home

Welcome to the merb-fasten-the-seat-belt wiki!

Merb-fasten-the-seat-belt is a really cool plugin that has been built for managing file upload (particularly images) for Datamapper. It’s not working with any other DRM but Datamapper.

Usage:

- install the gem
- dependencies “merb-fasten-the-seat-belt”
- include FastenTheSeatBelt in your model
- sample configuration in your model

fasten_the_seat_belt :path_prefix => ‘files’, :thumbnails => { :small => {:size => “232×232”, :crop => true, :quality => 100}, :large => {:size => “800×600”, :quality => 90}, }, :content_types => [“image/jpeg”, “image/jpg”]

That’s it.

For jpeg compression to work, you’ll need to install the jpegoptim, you can get it here: http://freshmeat.net/projects/jpegoptim/

Last edited by maxime, Mon Aug 18 15:51:34 -0700 2008
Home | Edit | New
Versions: