title: What is a good way to get the filename from a URL in Ruby?
body: <p>What is a good way to extract <code>filename.jpg</code> from:</p>
  
  <pre><code>url = 'http://www.example.com/foo/bar/filename.jpg?2384973948743'
  </code></pre>
  
  <p>I'm using Ruby 1.9.3.</p>