ruby on rails - Does carrierwave support git/svn as a storage repository -


  1. does carrierwave support git/svn storage repository instead of file operating system.

  2. 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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -