title: Using Paperclip + heroku + s3 ... local uploads broken when pushed live
body: <p>I am building a small website that has a fairly large amount of pictures > 100 for a small local group of people. If I upload files to s3 via paperclip on my local machine they work just fine, but when I push it to heroku those pics are then broken (aka pointing to the wrong location). </p>
  
  <p>If I pull the live database from heroku (case where I upload photos to the app that is online, then pull the online database). Those images don't load in my local app.</p>
  
  <p>Any ideas on how to get this working? </p>
  
  <p>EDIT:
  Some more clarification on the problem: I have now set the path within the model like so</p>
  
  <pre><code>:path =&gt; "/public/system/:attachment/:style/:id.:extension"
  </code></pre>
  
  <p>And it now controls how the url looks when accessing S3. However my local machine outputs this as the image source:</p>
  
  <pre><code>bucket/Users/msencenb/Development/appname/public/system/pictures/7/thumb/overlook.jpg?2011
  </code></pre>
  
  <p>while the heroku app source looks like this:</p>
  
  <pre><code>bucket/app/public/system/pictures/7/thumb/overlook.jpg?2011
  </code></pre>
  
  <p>As you can see this is very similar except the local one injects the directory structure into the source path as well. How can I the source path with paperclip?</p>