title: Rails4-carrierwave specifying different bucket for different models
body: <p>I am using carrierwave to upload images to google store. Is there some way to specify different buckets for different models. I tried keeping </p>
  
  <pre><code>config.fog_directory = '' 
  </code></pre>
  
  <p>in carrierwave.rb and then writing the name of buckets in store_dir in individual uploaders file but that gave following error:-</p>
  
  <blockquote>
    <p>[fog][WARNING] fog: the specified google storage bucket name () is not a valid dns name.  See: <a href="https://developers.google.com/storage/docs/bucketnaming" rel="nofollow">https://developers.google.com/storage/docs/bucketnaming</a>
    Completed 500 Internal Server Error in 815ms (ActiveRecord: 1.1ms)</p>
    
    <p>Excon::Errors::SocketError (getaddrinfo: No address associated with hostname >(SocketError)):</p>
  </blockquote>