This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
################################################## | ||
# NOTE FOR UPGRADING FROM PRE-3.0 VERSION # | ||
################################################## | ||
|
||
Paperclip 3.0 introduces a non-backward compatible change in your attachment | ||
path. This will help to prevent attachment name clashes when you have | ||
multiple attachments with the same name. If you didn't alter your | ||
attachment's path and are using Paperclip's default, you'll have to add | ||
`:path` and `:url` to your `has_attached_file` definition. For example: | ||
|
||
has_attached_file :avatar, | ||
:path => ":rails_root/public/system/:attachment/:id/:style/:filename", | ||
:url => "/system/:attachment/:id/:style/:filename" | ||
|
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