Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Add the blackbird javascript logger library to your rails project
JavaScript Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
images
javascripts
lib
stylesheets
tasks
test
MIT-LICENSE
README.textile
Rakefile
blackbird_readme.txt
init.rb
install.rb
uninstall.rb

README.textile

BlackBird offers a dead-simple way to log messages in JavaScript and an attractive console to view and filter them. Although most of us are already familiar with the FireBug console, BlackBird supplies us with an easy, simple and Cross Browser live console that is available upfront anytime you’d like.

BlackBird_rails is a plugin i created to simplify the integration of BlackBird into your rails applications, simply install it by invoking:

script/plugin install git://github.com/eladmeidar/blackbird_rails.git

and the required javascripts, stylesheets and images will be copied into your public/ folder. Next thing you’ll probably want to do is adding the include_black_bird snippet into your <head> block:

<%= include_black_bird %>

Which will add the blackbird javascript and CSS tags. It’s also important to point out, that the helper will only generate these tags when running the development environment, so you are hassle free regarding that matter.
you’ll still be required to remove all log.something calls in your javascript source, otherwise IE is going to be mad at you.
Now stubs are generated to prevent Javascript errors if you leave the log calls, note that if you change the namesspace, you’ll have to manually edit the helper to use the right namespace

From this point on, you can use BlackBird exactly as the home page explains.

Quick Tip

Drag this bookmartlets into your favorites toolbar and you’ll be able to:

  • clear
  • move
  • resize
  • and toggle

your BlackBird window anytime you’d like.

Copyright © 2009 Elad Meidar, released under the MIT license

Something went wrong with that request. Please try again.