forked from mcaruso85/paperclipdb
-
Notifications
You must be signed in to change notification settings - Fork 1
Database storage support for paperclip file attachment plugin.
License
anitsirc/paperclipdb
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Ruby 86.1%
- HTML 9.2%
- JavaScript 2.5%
- CSS 2.2%