title: Is there a better way to display the filename in carrierwave?
body: <p>At the moment</p>
  
  <pre><code>&lt;%= link_to comment.file, comment.file_url %&gt;
  </code></pre>
  
  <p>displays</p>
  
  <pre><code>/uploads/comment/file/6/IP___Addresses
  </code></pre>
  
  <p>Is there such thing as something like <code>comment.file.filename</code> ?</p>
  
  <p>Is there a way to get the filename and display a link to that, so it would just say IPAddresses.txt and links to "/uploads/comment/file/6/IPAddresses" ?</p>
  
  <p>Edit:</p>
  
  <p>Figured it out </p>
  
  <pre><code>&lt;%= link_to File.basename(comment.file.url), comment.file_url %&gt;
  </code></pre>