Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Database storage support for paperclip file attachment plugin.
Ruby
Tree: f2e6d03a55

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db/migrate
generators/paperclipdb
lib
test
.gitignore
.loadpath
.project
MIT-LICENSE
README
Rakefile
VERSION
init.rb
install.rb
paperclipdb.gemspec
uninstall.rb

README

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

Database storage support for paperclip file attachment plugin (Rails 3)

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) 2011 [Christian Berkhoff], released under the MIT license
Something went wrong with that request. Please try again.