Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Loading a helper that generates a load error gives a confusing error message

#6537

If you have a helper that require's a file that doesn't exist, you get an error message that is confusing, and wrong.

file: app/helpers/example_helper.rb

require 'md5'
module ExampleHelper
end

will generate an error like:

/Users/jmoses/.rvm/gems/ruby-1.9.2-p136@gemset/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:304:in rescue in depend_on': Missing helper file helpers/md5.rb (LoadError) from /Users/jmoses/.rvm/gems/ruby-1.9.2-p136@shotrunner/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:299:independ_on'

Where the 'md5' above is replaced by whatever file can't be found. It's confusing, and incorrect, it should either bubble the load error up, or indicate there's an error in that particular helper.

Reported by jmoses · March 6th, 2011 @ 01:54 AM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.