forked from cberkhoff/paperclipdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Database storage support for paperclip file attachment plugin.
License
friendlysystems/paperclipdb
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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
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 100.0%