The new default :path and :include include the name of the model and also nests the model ID under a series of subdirectories, improving filesystem access speed when more than 1024 models have saved attachments. The easiest way to upgrade is to add an explicit :url and :path to your has_attached_file calls: has_attached_file :avatar, :path => ":rails_root/public/system/:attachment/:id/:style/:filename", :url => "/system/:attachment/:id/:style/:filename"
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
fixtures | Loading commit data... | |
matchers | Loading commit data... | |
storage | Loading commit data... | |
support | Loading commit data... | |
attachment_options_test.rb | Loading commit data... | |
attachment_test.rb | Loading commit data... | |
database.yml | Loading commit data... | |
geometry_test.rb | Loading commit data... | |
helper.rb | Loading commit data... | |
integration_test.rb | Loading commit data... | |
interpolations_test.rb | Loading commit data... | |
iostream_test.rb | Loading commit data... | |
paperclip_missing_attachment_styles_test.rb | Loading commit data... | |
paperclip_test.rb | Loading commit data... | |
processor_test.rb | Loading commit data... | |
schema_test.rb | Loading commit data... | |
style_test.rb | Loading commit data... | |
thumbnail_test.rb | Loading commit data... | |
upfile_test.rb | Loading commit data... | |
url_generator_test.rb | Loading commit data... |