Created
August 23, 2011 21:43
-
-
Save purplejacket/1166662 to your computer and use it in GitHub Desktop.
Picture class without S3 authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ckeditor::Picture < Ckeditor::Asset | |
has_attached_file :data, | |
:url => "/ckeditor_assets/pictures/:id/:style_:basename.:extension", | |
:path => ":rails_root/public/ckeditor_assets/" + | |
"pictures/:id/:style_:basename.:extension", | |
:styles => {:content => '800>', :thumb => '118x100#'} | |
# etc.... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment