I tried the code example but I get the following error when a request hits the server:
[2011-09-16 15:04:36] ERROR NoMethodError: undefined method new' for "ResponseTimer":String
C:/project/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:72:inbuild'
C:/project/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:116:in build'
C:/project/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:ininject'
I tried the code example but I get the following error when a request hits the server:
[2011-09-16 15:04:36] ERROR NoMethodError: undefined method
new' for "ResponseTimer":String
build'C:/project/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:72:in
C:/project/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:116:in
build'
inject'C:/project/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in
I am using Rails 2.3.5/ Ruby 1.8.7.