Add this code to application.rb file
before_filter :benchmark_log def benchmark_log File.open("request_log.txt","a") do |f| f.puts request.method.to_s + " '" + request.request_uri + "', " + params.except(:action).except(:controller).inspect.gsub(/(^\{|\}$)/,"") end end
Then you can visit several pages in your browser, and the script session will be written to the request_log.txt file in the application root directory
source share