Skip to content
This repository
Prem Sichanugrist sikachu
file 13 lines (11 sloc) 0.678 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
##################################################
# 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"
Something went wrong with that request. Please try again.