Created
July 23, 2012 02:57
-
-
Save adamvr/3161798 to your computer and use it in GitHub Desktop.
Paperclip postinstall message
This file contains hidden or 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
| Post-install message from paperclip | |
| # 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" | |
| Cleaning up the bundler cache. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We're not upgrading from Paperclip 2, so it's fine.