carrierwave

https://github.com/carrierwaveuploader/carrierwave

Ruby

Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks

CarrierWave::Uploader::Cache#cache_path

Calculates the path where the cache file should be stored.

=== Parameters

[for_file (String)] name of the file <optional>

=== Returns

[String] the cache path

Source | Google | Stack overflow

Edit

git clone [email protected]:carrierwaveuploader/carrierwave.git

cd carrierwave

open lib/carrierwave/uploader/cache.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-CarrierWave--Uploader--Cache-cache_path-for-pr


# Commit to git

git add lib/carrierwave/uploader/cache.rbgit commit -m "better docs for CarrierWave::Uploader::Cache#cache_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-CarrierWave--Uploader--Cache-cache_path-for-pr

hub pull-request


# Celebrate!