Application::Benchmarking Help

Need some help getting the ActionController::Benchmarking module to

I try just using

benchmark (‘My Benchmark’, Logger::WARN) {


in my controller but I get undefined method…

I try require ‘benchmarking’ and require
‘action_contoller/benchmarking’, but it cant find that file…

I try include ActionController::Benchmarking but Benchmarking is an
uninitialized constant…

action_controller.rb freaking has these 2 lines in it, so I just don’t
get why it isn’t working:

require ‘action_controller/benchmarking’
ActionController::Base.class_eval do
include ActionController::Benchmarking

What the hell am I doing wrong here? My Controller is just standard
derived from ApplicationController.

Any help would be appreciated…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs