Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Whitespace and typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Sep 15, 2011
1 parent 487ab74 commit f12e2e8
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions README.md
Expand Up @@ -62,7 +62,7 @@ Or, if you don't use Bundler (though you probably should, even in Rails 2), with
end
For Non-Rails usage:

class ModleName < ActiveRecord::Base
class ModuleName < ActiveRecord::Base
include Paperclip::Glue
...
end
Expand Down Expand Up @@ -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
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.

Events
Expand All @@ -233,7 +233,9 @@ called with valid attachments._
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)

Expand Down Expand Up @@ -275,7 +277,7 @@ a few utility examples would be compression and encryption processors.
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
components of the library but is most significant in the possibilities for
allowing custom styles and processors to be applied for specific model
Expand Down Expand Up @@ -328,7 +330,7 @@ Here is an example for Capistrano:
run "cd #{release_path}; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
end
end

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.
Expand All @@ -340,25 +342,25 @@ Paperclip about existing styles. Simply create paperclip_attachments.yml file by
class User < ActiveRecord::Base
has_attached_file :avatar, :styles => {:thumb => 'x100', :croppable => '600x600>', :big => '1000x1000>'}
end

class Book < ActiveRecord::Base
has_attached_file :cover, :styles => {:small => 'x100', :large => '1000x1000>'}
has_attached_file :sample, :styles => {:thumb => 'x100'}
end

Then in `RAILS_ROOT/public/system/paperclip_attachments.yml`:

---
:User:
:avatar:
---
:User:
:avatar:
- :thumb
- :croppable
- :big
:Book:
:cover:
:Book:
:cover:
- :small
- :large
:sample:
:sample:
- :thumb

Testing
Expand Down

0 comments on commit f12e2e8

Please sign in to comment.