Skip to content
Server-side console.log() for your Rails application
Ruby
Find file
Latest commit d748eae @inem fixing readme
Failed to load latest commit information.
lib init commit
tasks init commit
test init commit
MIT-LICENSE init commit
README.markdown fixing readme
Rakefile init commit
TODO added readme
VERSION added VERSION
init.rb init commit
install.rb init commit
uninstall.rb init commit

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.