Saw a Django Debug Bar yesterday, decided I wanted to try to build one for Rails. Ridiculously incomplete right now, but it’s not too hard to expand.

Rails Debug Bar

From root of your rails app: git submodule add git://github.com/bkerley/railsdebugbar.git vendor/plugins/railsdebugbar

In the ApplicationController or any other controller:

class ApplicationController < ActionController::Base
  after_filter ::RailsDebugBar
end

Hacking in additional entries isn’t too hard:

class RailsDebugBar
  def self.filter(controller)
…

    parts = ["DEBUG",
      rails_version,
      "#{controller.class.to_s}/#{controller.action_name}.#{controller.request.format}",
      controller.response.status,
      ["Request headers"] + hash_to_array(controller.request.headers),
      ["Response headers"]+ hash_to_array(controller.response.headers),
      # ADD MORE HERE
    ]

Fork and modify it on github