![]() Then, in your environment config file, let Paperclip know to look there by adding that ![]() ForĮxample, it might return /usr/local/bin/convert. This will give you the path where that utility is installed. That it does, on your command line, run which convert (one of the ImageMagick ImageMagick must be installed and Paperclip must have access to it. (only if you're going to use Paperclip with Ruby on Rails). Paperclip now requires Ruby version >= 2.1 and Rails version >= 4.2 See the documentation for has_attached_file in Paperclip::ClassMethods for Attached files are saved to the filesystem and referenced in theīrowser by an easily understandable specification, which has sensible and Needed, and the prerequisites are as simple as installing ImageMagick (which,įor most modern Unix-based systems, is as easy as installing the right It can transform its assigned image into thumbnails if This means they aren't saved to theirįinal locations on disk, nor are they deleted if set to nil, untilĪctiveRecord::Base#save is called. Intent behind it was to keep setup as easy as possible and to treat files as Paperclip is intended as an easy file attachment library for ActiveRecord. Please check the documentation for the paperclip version you are using: Existing documentation Documentation valid for master branch All other pull requests will be closed without merging. We are no longer accepting pull requests except pull requests against the Guarantee a response from us in the Issues. We will leave the Issues open as a discussion forum only. You may also prefer an alternative migration tutorial used byĪlternatively, for existing projects, Kreeti is maintaining kt-paperclip, For new projects, we recommend Rails' own ActiveStorage.įor existing projects, please consult and contribute to the migration guide,Īvailable in English, en español, and as a video recorded at RailsConfĢ019.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |