paperclip

https://github.com/thoughtbot/paperclip

Ruby

Easy file attachment management for ActiveRecord

Paperclip::Attachment#path

Returns the path of the attachment as defined by the :path option. If the
file is stored in the filesystem the path refers to the path of the file
on disk. If the file is stored in S3, the path is the "key" part of the
URL, and the :bucket option refers to the S3 bucket.

Source | Google | Stack overflow

Edit

git clone [email protected]:thoughtbot/paperclip.git

cd paperclip

open lib/paperclip/attachment.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Paperclip--Attachment-path-for-pr


# Commit to git

git add lib/paperclip/attachment.rbgit commit -m "better docs for Paperclip::Attachment#path"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Paperclip--Attachment-path-for-pr

hub pull-request


# Celebrate!