title: Paperclip unable to change default path
body: <p>I'm having a similar problem to <a href="https://stackoverflow.com/questions/19662695/paperclip-aws-s3-prefixing-remote-path-with-my-local-path">this</a> issue, except I'm unable to modify the path at all.</p>
  
  <p>I'm using Spree 2.2 which uses paperclip 3.4.2</p>
  
  <p>I'm trying to modify the paperclip defaults to change the image path.  All of the other configuration is working.</p>
  
  <pre><code>Myapp::Application.configure do
    config.paperclip_defaults = { 
      :storage =&gt; :s3,
      :s3_protocol =&gt; 'https',
      :s3_host_name =&gt; "s3-eu-west-1.amazonaws.com",
      :path =&gt; ":rails_root/public/:attachment/:id/:style/:basename.:extension", 
      :url =&gt; "/:attachment/:id/:style/:basename.:extension",
      :s3_credentials =&gt; {
        :bucket =&gt; 'xxx',
        :access_key_id =&gt; "xxx",
        :secret_access_key =&gt; "xxx"
      }   
    }     
  end
  </code></pre>
  
  <p>But with this code the URL is like so:<br>
  <a href="https://s3-eu-west-1.amazonaws.com/bucketname/home/username/path/to/project/public/spree/products/24/original/ror_baseball.jpeg?1390110939" rel="nofollow noreferrer">https://s3-eu-west-1.amazonaws.com/bucketname/home/username/path/to/project/public/spree/products/24/original/ror_baseball.jpeg?1390110939</a></p>
  
  <p>I've tried adding the following to that config block:<br></p>
  
  <pre><code>config.attachment_path = '/spree/products/:id/:style/:basename.:extension'
  </code></pre>
  
  <p>I've also tried adding the following to the config/initializers/paperclip.rb</p>
  
  <pre><code>Paperclip::Attachment.default_options[:url] = "/:attachment/:id/:style/:basename.:extension"
  Paperclip::Attachment.default_options[:path] = ":rails_root/public/:attachment/:id/:style/:basename.:extension"
  </code></pre>
  
  <p>And also tried:</p>
  
  <pre><code>Paperclip::Attachment.default_options.merge!(
    :path =&gt; ":rails_root/public/:attachment/:id/:style/:basename.:extension", 
    :url =&gt; "/:attachment/:id/:style/:basename.:extension"
  )
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>UPDATE: <a href="https://github.com/spree/spree/issues/4448" rel="nofollow noreferrer">opened ticket on github</a></p>