title: Striping last directory from path with regex in Ruby?
body: <p>I have a list of documents that I've collected using <code>Dir.glob</code> in Rails 3.</p>
  
  <p>The result is a list of paths similar to the following:</p>
  
  <pre><code>/home/danny/nurserotas/GREEN WEEK 2ND JAN 2012.xls
  </code></pre>
  
  <p>What I would like to achieve is striping everything up, and including, the last forward slash. So the result for the above path is:</p>
  
  <pre><code>GREEN WEEK 2ND JAN 2012.xls
  </code></pre>
  
  <p>I'm going to be using these as links so I'm not sure if replacing the spaces with %20 is a good idea or not.</p>
  
  <p>Any help would be appreciated!</p>