Skip to content

Commit

Permalink
Add note on using S3's url option
Browse files Browse the repository at this point in the history
Fix typo.

Progress on thoughtbot#2071.

[closes thoughtbot#2282]

[ci skip]
andyatkinson authored and tute committed Aug 23, 2016
1 parent 8b16370 commit 4b617ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/paperclip.rb
Original file line number Diff line number Diff line change
@@ -120,7 +120,7 @@ module ClassMethods
# called on it, the attachment will *not* be deleted until +save+ is called. See the
# Paperclip::Attachment documentation for more specifics. There are a number of options
# you can set to change the behavior of a Paperclip attachment:
# * +url+: The full URL of where the attachment is publically accessible. This can just
# * +url+: The full URL of where the attachment is publicly accessible. This can just
# as easily point to a directory served directly through Apache as it can to an action
# that can control permissions. You can specify the full domain and path, but usually
# just an absolute path is sufficient. The leading slash *must* be included manually for
@@ -129,6 +129,9 @@ module ClassMethods
# Paperclip::Attachment#interpolate for more information on variable interpolaton.
# :url => "/:class/:attachment/:id/:style_:filename"
# :url => "http://some.other.host/stuff/:class/:id_:extension"
# Note: When using the +s3+ storage option, the +url+ option expects
# particular values. See the Paperclip::Storage::S3#url documentation for
# specifics.
# * +default_url+: The URL that will be returned if there is no attachment assigned.
# This field is interpolated just as the url is. The default value is
# "/:attachment/:style/missing.png"

0 comments on commit 4b617ff

Please sign in to comment.