eddorre / railsdebugbar forked from bkerley/railsdebugbar

semipersistent debugging tool

This URL has Read+Write access

Carlos Rodriguez (author)
Mon Jan 12 17:52:31 -0800 2009
commit  0b6b02b5e094d0f5ec0ad52900eeacea1ed1e23f
tree    e2bb50bb681d54b7ba8ec946b3746f5c88bd7166
parent  f2571a1fc4494b179fedaf86040a214b2602fddb
name age message
file MIT-LICENSE Sat Sep 20 16:22:32 -0700 2008 stub plugin [bkerley]
file README.markdown Loading commit data...
file Rakefile Sat Sep 20 16:22:32 -0700 2008 stub plugin [bkerley]
file init.rb Sat Sep 20 18:24:38 -0700 2008 stub [bkerley]
file install.rb Sat Sep 20 16:22:32 -0700 2008 stub plugin [bkerley]
directory lib/
directory tasks/ Sat Sep 20 16:22:32 -0700 2008 stub plugin [bkerley]
directory test/ Sat Sep 20 16:22:32 -0700 2008 stub plugin [bkerley]
file uninstall.rb Sat Sep 20 16:22:32 -0700 2008 stub plugin [bkerley]
README.markdown

Rails Debug Bar

Bar of diagnostic info for Rails. Inspired by http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/

Expect this to need extending to be useful for you. Patches accepted, forking encouraged.

Usage

class ApplicationController < ActionController::Base
  after_filter RailsDebugBar unless Rails.env.production?
end

Copy CSS to /stylsheets/rails_debug_bar.css (Generator coming)

ul#rails_debug_bar {

list-style-type: none;
margin-bottom: 0;
margin-top: 1em;
padding-left: 0

} ul#rails_debug_bar li {

display: inline-block;
padding: 0.2em;
border: 1px solid black;
background-color: #fda;
color: black;

} ul#rails_debug_bar li ul {

display: none;
padding-left: 0px;

} ul#rails_debug_bar li:hover ul {

display: block;
position: absolute;
z-index: 2;

} ul#rails_debug_bar li ul li {

display: block;

}

Copyright (c) 2008 Bryce Kerley, released under the MIT license. My version: http://github.com/bkerley/railsdebugbar/tree/master