Hi, I''m trying to use the benchmark method (from Module ActionController::Benchmarking::ClassMethods). But I get a "undefined method benchmark." I''m trying to use it from inside a method in a subclass of ActionController::Caching::Sweeper Ideas much appreciated. Thanks, Larry ~~~~~~~~~~~~ class CacheSweeper < ActionController::Caching::Sweeper # sweeps the page cache for the conference site pages observe Conference def after_save(conference) dir = "#{page_cache_directory}/cs/conference.id" benchmark "Expired directory: #{dir}" do FileUtils.remove_dir(dir) # pg 231 -- Ruby Cookbook end end end -- 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 -~----------~----~----~----~------~----~------~--~---