Skip to content

Database storage support for paperclip file attachment plugin.

License

Notifications You must be signed in to change notification settings

karnov/paperclipdb

 
 

Repository files navigation

OBS
===========
Gem in progress if you find any bug, please let me know and/or if you feel like fixing it please go ahead :)

Install
=======

Add the paperclipdb gem to your Gemfile
gem 'paperclipdb', :git => 'git://github.com/anitsirc/paperclipdb.git'

Setup and tun the migrations
rake paperclipdb:install:migrations
rake db:migrate

Usage
=======

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

Copyright (c) 2012 [Martin Caruso, Cristina Matonte], released under the MIT license

About

Database storage support for paperclip file attachment plugin.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 86.1%
  • HTML 9.2%
  • JavaScript 2.5%
  • CSS 2.2%