views:

173

answers:

2

Here's what I've tried:

1. gem install awesome_print
2. echo "require 'ap'" >> ~/.irbrc
3. chmod u+x ~/.irbrc
4. script/console
5. ap { :test => 'value' }

Result:

NameError: undefined local variable or method `ap' for #
+2  A: 

Adding "require 'rubygems'" to my ~/.irbrc file seemed to do the trick.

jdeseno
+1  A: 

In my case it was "If your ~/.irbrc is invalid, it will fail silently." - from Google search

rombob