title: Clear a String after a certain character
body: <p>I get this path <code>/system/papers/articles/000/000/024/original/data.png?1404191431</code> using paperclip.But as you can after the extension(.png) I get a number,I have no idea why..
  So I would like to clear all text after the <code>.png</code>including the <strong>?</strong>.</p>
  
  <p>How do I do it in ruby?</p>
  
  <p>The reason I need that link is because I need to add metadata to it using ImageMagick which currently I am not able to do cause of the random number which comes.</p>
  
  <p>Also if possible I would like to know why does that number get printed by paperclip cause from what I see,the number doesnt get saved in the database nor does it save to the image name..</p>