rails/rails — Issue #3474: Rails 2.3.x & Ruby 1.9.3: Load Error Missing Regex for Exception
Author: apalmblad
Created: 2011-10-30 22:34:36+00:00
State: open

The error message returned by ruby 1.9.3-p0 is not caught by the list of regexes provided by activesupport/lib/active_support/core_ext/load_error.rb.

I've pulled out the regexp used by Rails 3, here and adjusted the file in a pull request:
https://github.com/rails/rails/pull/3473

It can be fixed for existing rails apps by adding an initializer, say, config/initializers/fix_file_error_parsing.rb, and adding the following 1 line of code:

MissingSourceFile::REGEXPS.push( [/^cannot load such file -- (.+)$/i, 1] )