formating the ruby – rails console

Posted by | Posted in code, computers, Work | Posted on 28-10-2009

So now that I got the ruby console working, when you get output it’s just a big stream of text, and very hard to read separate results, and just a plain PITA.

This: http://github.com/cldwalker/hirb#readme

Does some excellent formating, comes with the default view enabled, but if you want to make your own configurations you can.

Read More

rails console errors on start “`require’: no such file to load — readline (LoadError)”

Posted by | Posted in code, computers, Work | Posted on 28-10-2009

I was getting this:

Loading development environment (Rails 2.3.2)
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require’: no such file to load — readline (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require’
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules’
from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each’
from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules’
from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup’
from /usr/local/lib/ruby/1.8/irb.rb:54:in `start’
from /usr/local/bin/irb:13

Whenever I tried to use the console.  Some helpfull google searching got me this:
http://dirk.net/2009/04/05/no-such-file-to-load-readline-loaderror-when-running-scriptconsole/

Which worked wonders.

I  also caught that I pretty much stick everything I’ve added to my work comp in my home directory.  I have no time for basic organization apparently.

Read More