Skip to content
No description or website provided.
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


# Install on Debian/Ubuntu

apt-get install libgd2-noxpm libgd2-dev
gem install inline

# For Merb

Put attachment_pu.rb in /lib and then in your model put the following:

    has_attachment :thumb => [400,400], :tiny => [128,128]

You also need to include the functionality in your persistence framework of choice:

    ActiveRecord::Base.send(:extend, AttachmentPu::ActMethods)
    DataMapper::Resource.send(:extend, AttachmentPu::ActMethods)
Something went wrong with that request. Please try again.