carrierwave
https://github.com/carrierwaveuploader/carrierwave
Ruby
Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks
CarrierWave::Storage::Fog::File#copy_to
Creates a copy of this file and returns it. === Parameters [new_path (String)] The path where the file should be copied to. === Returns
Edit
git clone [email protected]:carrierwaveuploader/carrierwave.git
cd carrierwave
open lib/carrierwave/storage/fog.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-CarrierWave--Storage--Fog--File-copy_to-for-pr
# Commit to gitgit add lib/carrierwave/storage/fog.rbgit commit -m "better docs for CarrierWave::Storage::Fog::File#copy_to"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-CarrierWave--Storage--Fog--File-copy_to-for-pr
hub pull-request
# Celebrate!