Need some help getting the ActionController::Benchmarking module to
work…
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
end
What the hell am I doing wrong here? My Controller is just standard
derived from ApplicationController.
Any help would be appreciated…