Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
34f44993
Commit
34f44993
authored
May 14, 2012
by
Chris Houhoulis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct typo, grammar, formatting in README.md
parent
d6a3a712
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
README.md
+7
-7
No files found.
README.md
View file @
34f44993
...
@@ -244,7 +244,7 @@ This would load the hypothetical class Paperclip::Ocr, which would have the
...
@@ -244,7 +244,7 @@ This would load the hypothetical class Paperclip::Ocr, which would have the
hash "{ :quality => :better }" passed to it along with the uploaded file. For
hash "{ :quality => :better }" passed to it along with the uploaded file. For
more information about defining processors, see Paperclip::Processor.
more information about defining processors, see Paperclip::Processor.
The default processor is Paperclip::Thumbnail. For backwards compat
a
bility
The default processor is Paperclip::Thumbnail. For backwards compat
i
bility
reasons, you can pass a single geometry string or an array containing a
reasons, you can pass a single geometry string or an array containing a
geometry and a format, which the file will be converted to, like so:
geometry and a format, which the file will be converted to, like so:
...
@@ -400,10 +400,10 @@ processors, where a defined `watermark` processor is invoked after the
...
@@ -400,10 +400,10 @@ processors, where a defined `watermark` processor is invoked after the
attr_accessor :watermark
attr_accessor :watermark
end
end
Deploy
Deploy
ment
------
------
----
Paperclip is aware of new attachment styles you have added in previous deploy. The only thing you should do after each deployment is to call
Paperclip is aware of new attachment styles you have added in previous deploy
s
. The only thing you should do after each deployment is to call
`rake paperclip:refresh:missing_styles`
. It will store current attachment styles in
`RAILS_ROOT/public/system/paperclip_attachments.yml`
`rake paperclip:refresh:missing_styles`
. It will store current attachment styles in
`RAILS_ROOT/public/system/paperclip_attachments.yml`
by default. You can change it by:
by default. You can change it by:
...
@@ -420,11 +420,11 @@ Here is an example for Capistrano:
...
@@ -420,11 +420,11 @@ Here is an example for Capistrano:
after("deploy:update_code", "deploy:build_missing_paperclip_styles")
after("deploy:update_code", "deploy:build_missing_paperclip_styles")
Now you don't have to remember to refresh thumbnails in production every
time you add
new style.
Now you don't have to remember to refresh thumbnails in production every
time you add a
new style.
Unfortunately it does not work with dynamic styles - it just ignores them.
Unfortunately it does not work with dynamic styles - it just ignores them.
If you already have working app and don't want
`rake paperclip:refresh:missing_styles`
to refresh old pictures, you need to tell
If you already have
a
working app and don't want
`rake paperclip:refresh:missing_styles`
to refresh old pictures, you need to tell
Paperclip about existing styles. Simply create
paperclip
\_
attachments.yml
file by hand. For example:
Paperclip about existing styles. Simply create
a
`paperclip_attachments.yml`
file by hand. For example:
class User < ActiveRecord::Base
class User < ActiveRecord::Base
has_attached_file :avatar, :styles => {:thumb => 'x100', :croppable => '600x600>', :big => '1000x1000>'}
has_attached_file :avatar, :styles => {:thumb => 'x100', :croppable => '600x600>', :big => '1000x1000>'}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment