title: How to access paperclip attachments on server side?
body: <p>I am using paperclip to attach an excel file to a mode. </p>
  
  <p>The purpose is to import the data from the excel file to the database. </p>
  
  <pre><code>Model: Import
  has_attached_file: spreadsheet
  </code></pre>
  
  <p>For the import process, I want to access the file in my model as following. </p>
  
  <pre><code>path = "#{Rails.root}/public/#{spreadsheet.url}"    
  </code></pre>
  
  <p>This doesn't work. I guess because the url has the timestamp at the end. </p>
  
  <p>In general what is the best way to access the attachments on server side ?</p>