title: Errno::ENOENT - No such file or directory @ rb_sysopen
body: <p>I'm trying to send an email attachment using action mailer in ruby on rails and I keep getting this error. The problem seems to be that it can't locate the file in the directory I specified, but the file path is valid. I also checked this using <code>File.exist?</code> in the console and confirmed that the path provided evaluates to true.</p>
  
  <p>Here is my mailer:</p>
  
  <pre><code>class OrderMailer &lt; ApplicationMailer   
    def purchase(order)
      @order = order
      attachments[ 'files.zip'] = File.read(Rails.root + '/public/albums/files.zip')
      mail to: order.email, subject: "Order Confirmation"
    end
  end
  </code></pre>
  
  <p>I also installed the mail gem to handle encoding, as advised by the Action Mailer documentation.</p>
  
  <p>Any help would be much appreciated,
  -Brian</p>