BACKTRACE

(condense)

Back to Posts List

GET

Using BlackBird javascript console in Rails

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.

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:

your BlackBird window anytime you’d like.

POST

blog comments powered by Disqus

I Don't have cookies.

ELAD ENV

Variable Value
LINKEDIN
TWITTER
FACEBOOK
GITHUB
WWR
IRC
{ 'irc.freenode.net' => [ '#rubyonrails', '#railsbridge', '#ruby', '#mootools' ]}
SKYPE
eladmeidar

You're seeing this error because I think it is funny.