Skip to content
This repository
Newer
Older
100644 13 lines (11 sloc) 0.678 kb
b3a63edb » sikachu
2012-03-23 Add Upgrading note
1 ##################################################
2 # NOTE FOR UPGRADING FROM PRE-3.0 VERSION #
3 ##################################################
4
5 Paperclip 3.0 introduces a non-backward compatible change in your attachment
6 path. This will help to prevent attachment name clashes when you have
7 multiple attachments with the same name. If you didn't alter your
8 attachment's path and are using Paperclip's default, you'll have to add
9 `:path` and `:url` to your `has_attached_file` definition. For example:
10
11 has_attached_file :avatar,
12 :path => ":rails_root/public/system/:attachment/:id/:style/:filename",
13 :url => "/system/:attachment/:id/:style/:filename"
14
Something went wrong with that request. Please try again.