1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/fixtures
Piotr Niełacny e0438b1c07 Show real LoadError on helpers require
When helper try to require missing file rails will throw exception about
missing helper.

  # app/helpers/my_helper.rb

  require 'missing'

  module MyHelper
  end

And when we try do load helper

  class ApplicationController
    helper :my
  end

Rails will throw exception. This is wrong because there is a helper
file.

  Missing helper file helpers/my_helper.rb

Now when helper try to require non-existed file rails will throw proper
exception.

  No such file to load -- missing
2013-07-10 11:26:43 +02:00
..
alternate_helpers
bad_customers
customers
filter_test/implicit_actions
fun/games
functional_caching
good_customers
helpers
helpers1_pack
helpers2_pack
helpers_missing Show real LoadError on helpers require 2013-07-10 11:26:43 +02:00
layout_tests
layouts
localized
multipart
old_content_type
override/test
override2/layouts/test
post_test
public
quiz/questions
respond_to
respond_with
session_autoload_test/session_autoload_test
star_star_mime
symlink_parent
test
_top_level_partial_only.erb
company.rb
hello.html
ruby_template.ruby
shared.html.erb