Database Storage support for paperclip file attachment
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db/migrate
generators/paperclipdb
lib
test
.gitignore
.loadpath
MIT-LICENSE
README
Rakefile
VERSION
init.rb
install.rb
paperclipdb.gemspec
uninstall.rb

README

Paperclipdb
===========

Database storage support for paperclip file attachment plugin.

Install
=======

gem install paperclipdb
rake paperclipdb:setup
rake db:migrate

Usage
=======

class ModelWithAttach < ActiveRecord::Base
	has_attached_file :attach, 
					  :storage => "database" , 
					  :styles => { :medium => "300x300>", :thumb => "100x100>" }, 
					  :url => "/:class/:attachment/:id/:style/:basename.:extension"
end

Copyright (c) 2010 [Martin Caruso], released under the MIT license