title: Paperclip with symlinks on NFS, no routes matches [GET]
body: <p>I’ve a strange behaviour on a fairly complex Rails 5 project. </p>
  
  <p>My app runs on a server with Phusion Passenger 5 behind NGINX and deploys are managed with Capistrano 3.</p>
  
  <p>Everything works fine except one thing, the <strong>paperclip</strong> gem.</p>
  
  <p>Currently paperclip can upload and save files, storing file names on the database but when the app use <em>GET</em> method on an image url the result is a <strong>404</strong> .</p>
  
  <p>The rails error is <em>No route matches [GET]</em> with the url of the file.</p>
  
  <p>On my dev machine everything works fine.</p>
  
  <p>Currently the system folder where Paperclip store files is a Symlink to an NFS disk mounted outside the application public folder.</p>
  
  <p>I’m fairly sure that problem resides on the NFS mount or symlink, because if I use a local folder I have no problems. </p>
  
  <p>Does anyone ever tried a similar configuration?</p>
  
  <p>Does the NFS mount needs to be mounted or configured in some way?</p>