Skip to content
maxime edited this page Sep 12, 2010 · 3 revisions

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/

Clone this wiki locally