ruby on rails - Does carrierwave support git/svn as a storage repository -
does carrierwave support git/svn storage repository instead of file operating system.
does carrierwave support versioning of image. i.e. stored foo.png / version1 , made changes , store foo.png / version2. given foo.png should able retrieve version1/version2.
check out http://rubydoc.info/gems/carrierwave/frames
if want change storage directory:
class myuploader < carrierwave::uploader::base def store_dir 'public/my/upload/directory' #where want story images, works cloud storage end end
if want version control, using thumbnail example:
class myuploader < carrierwave::uploader::base include carrierwave::rmagick process :resize_to_fit => [800, 800] version :thumb process :resize_to_fill => [200,200] end end
the rubydocs have information , more check out.
another resource ryan bates rails casts:
http://railscasts.com/episodes/253-carrierwave-file-uploads - free
http://railscasts.com/episodes/383-uploading-to-amazon-s3 - requires subscription
Comments
Post a Comment