I need to save from "Errno :: ENOENT" in a Ruby on Rails 3.0.4 application. I currently have a controller with the following code:
begin `lame #{parameters}` rescue Errno::ENOENT logger.info "command 'lame' not found: ensure LAME is installed" end
However, the log code is never called, but the logs show:
script / rails: No such file or directory - lame ...
If I create a ruby ββscript with the same fragment, the exception will be saved.
ruby ruby-on-rails
Kevin sylvestre
source share