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...
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---