class ExceptionTestController < ApplicationController
  def index
    test = "Test"
    test_method
  end

  def xhr
    raise "asda" if request.xhr?
  end

  def test_method
    test2 = "Test2"
    raise StandardError
  end
end

class ExceptionTestController < ApplicationController
  def index
    test = "Test"
    test_method
  end

  def xhr
    raise "asda" if request.xhr?
  end

  def test_method
    test2 = "Test2"
    params.fetch(:error_in_library_code)
  end
end

Raise inside a library code for the test controller
Raise inside a library code for the test controller

That way, we can see whether the evaluated binding is inside the
StrongParameters code, which it shouldn't be, as we display the first
application code on the error pages.
