web-debug-toolbar
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Web Debug Toolbar for Rails
== WebDebugToolbar

This project rocks and uses MIT-LICENSE.

== Installation

To install this gem, add the following line to your application's Gemfile

    gem 'web-debug-toolbar', :git => 'git://github.com/ludovic-henry/web-debug-toolbar.git'

== Configuration

The only thing that you need to do is : set the SHOW_DEBUG_TOOLBAR constant anywhere in the code. So you can for example create a config/initializers/web_debug_toolbar.rb and add some logic to enable or not the toolbar. For example :

    #config/initializers/web_debug_toolbar.rb
	
    if ENV["RAILS_ENV"] == 'development'
      SHOW_DEBUG_TOOLBAR = true
    else
      SHOW_DEBUG_TOOLBAR = false
    end

== What does it do

This gem will simply add a bar to the top right of the page to show some informations about the request like:
* the time taken by the server to generate this page
* the time taken by the SQL queries and a list of each SQL query
* the time taken to render the different views

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。