title: Ruby on Rails rescuing from 'Errno::ENOENT'
body: <p>I need to rescue from 'Errno::ENOENT' in a Ruby on Rails 3.0.4 application. I currently have  controller with the following code:</p>
  
  <pre><code>begin
    `lame #{parameters}`
  rescue Errno::ENOENT
    logger.info "command 'lame' not found: ensure LAME is installed"
  end
  </code></pre>
  
  <p>However, the log code is never called, but the logs show:</p>
  
  <blockquote>
    <p>script/rails: No such file or directory - lame ...</p>
  </blockquote>
  
  <p>If I create a ruby script with same snippet, the exception is rescued.</p>