Commit f12e2e86 by Gabe Berke-Williams

Whitespace and typos.

parent 487ab74d
...@@ -62,7 +62,7 @@ Or, if you don't use Bundler (though you probably should, even in Rails 2), with ...@@ -62,7 +62,7 @@ Or, if you don't use Bundler (though you probably should, even in Rails 2), with
end end
For Non-Rails usage: For Non-Rails usage:
class ModleName < ActiveRecord::Base class ModuleName < ActiveRecord::Base
include Paperclip::Glue include Paperclip::Glue
... ...
end end
...@@ -209,7 +209,7 @@ styles, no processors will be run if there are no styles defined._ ...@@ -209,7 +209,7 @@ styles, no processors will be run if there are no styles defined._
If you're interested in caching your thumbnail's width, height and size in the If you're interested in caching your thumbnail's width, height and size in the
database, take a look at the [paperclip-meta](https://github.com/y8/paperclip-meta) gem. database, take a look at the [paperclip-meta](https://github.com/y8/paperclip-meta) gem.
Also, if you're interesting to generate the thumbnail on-the-fly, you might want Also, if you're interested in generating the thumbnail on-the-fly, you might want
to look into the [attachment_on_the_fly](https://github.com/drpentode/Attachment-on-the-Fly) gem. to look into the [attachment_on_the_fly](https://github.com/drpentode/Attachment-on-the-Fly) gem.
Events Events
...@@ -233,7 +233,9 @@ called with valid attachments._ ...@@ -233,7 +233,9 @@ called with valid attachments._
URI Obfuscation URI Obfuscation
--------------- ---------------
Paperclip has an interpolation called `:hash` for obfuscating filenames of publicly-available files. For more on this feature read author's own explanation. Paperclip has an interpolation called `:hash` for obfuscating filenames of
publicly-available files. For more on this feature read the author's own
explanation.
[https://github.com/thoughtbot/paperclip/pull/416](https://github.com/thoughtbot/paperclip/pull/416) [https://github.com/thoughtbot/paperclip/pull/416](https://github.com/thoughtbot/paperclip/pull/416)
...@@ -275,7 +277,7 @@ a few utility examples would be compression and encryption processors. ...@@ -275,7 +277,7 @@ a few utility examples would be compression and encryption processors.
Dynamic Configuration Dynamic Configuration
--------------------- ---------------------
Callable objects (labdas, Procs) can be used in a number of places for dynamic Callable objects (lambdas, Procs) can be used in a number of places for dynamic
configuration throughout Paperclip. This strategy exists in a number of configuration throughout Paperclip. This strategy exists in a number of
components of the library but is most significant in the possibilities for components of the library but is most significant in the possibilities for
allowing custom styles and processors to be applied for specific model allowing custom styles and processors to be applied for specific model
...@@ -328,7 +330,7 @@ Here is an example for Capistrano: ...@@ -328,7 +330,7 @@ Here is an example for Capistrano:
run "cd #{release_path}; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles" run "cd #{release_path}; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
end end
end end
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 everytime you add new style. Now you don't have to remember to refresh thumbnails in production everytime you add new style.
...@@ -340,7 +342,7 @@ Paperclip about existing styles. Simply create paperclip_attachments.yml file by ...@@ -340,7 +342,7 @@ Paperclip about existing styles. Simply create paperclip_attachments.yml file by
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>'}
end end
class Book < ActiveRecord::Base class Book < ActiveRecord::Base
has_attached_file :cover, :styles => {:small => 'x100', :large => '1000x1000>'} has_attached_file :cover, :styles => {:small => 'x100', :large => '1000x1000>'}
has_attached_file :sample, :styles => {:thumb => 'x100'} has_attached_file :sample, :styles => {:thumb => 'x100'}
...@@ -348,17 +350,17 @@ Paperclip about existing styles. Simply create paperclip_attachments.yml file by ...@@ -348,17 +350,17 @@ Paperclip about existing styles. Simply create paperclip_attachments.yml file by
Then in `RAILS_ROOT/public/system/paperclip_attachments.yml`: Then in `RAILS_ROOT/public/system/paperclip_attachments.yml`:
--- ---
:User: :User:
:avatar: :avatar:
- :thumb - :thumb
- :croppable - :croppable
- :big - :big
:Book: :Book:
:cover: :cover:
- :small - :small
- :large - :large
:sample: :sample:
- :thumb - :thumb
Testing Testing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment