Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Server-side console.log() for your Rails application

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO
Octocat-spinner-32 VERSION
Octocat-spinner-32 init.rb
Octocat-spinner-32 install.rb
Octocat-spinner-32 uninstall.rb
README.markdown

Have you ever wanted to type console.log() in your rails app?

def index
  @people = People.all.age_less_than_20
  console.log(@people)
end

Handcar lets you to push data from your rails application to firebug console.

In Action

  • Here is your action:

    def index
        honk('Handcar is ruby on rails console for your firebug')
        honk(['this is string',2,{:hash_in => 'Array'},5,6])
        honk(nil)
        honk(2)
        honk({:simple_hash => {:hash_in => 'Hash'}, :in => ''})
    end
    
  • And here is you firebug console:
    handcar output in firebug console

  • And moreover, when you get an error, it will display all your honks before that error:
    handcar output in firebug console
    I think you have got the idea

Installation

Handcar has two parts: rails plugin & firefox plugin.
Both had to be installed:

  • Firefox extention
  • Rails plugin:
    ./script/plugin install git://github.com/inem/handcar.git

Possible issues

  • Handcar aims only local development process. It will not communicate with non-localhost machine.
  • You will not see actual ruby objects in firebug. Of course it is your objects' representations in JSON format

Source code

Something went wrong with that request. Please try again.