3

I have installed both awsome print & hirb irb plugins to Ruby 1.9.2 through rvm. I can able to access it from irb session. But when i tried from rails console, i got the error

ruby-1.9.2-p180 :001 > require "hirb"
LoadError: no such file to load -- hirb

What could be the reason?

RameshVel
  • 64,778
  • 30
  • 169
  • 213
  • I know there is no need for `rubygems` in rails console, but have you tried `require 'rubygems'` before `require 'hirb'`? – rubyprince Apr 12 '11 at 06:18
  • @rubyprince, nope its not working.. you have to add the necessary gem config in rails gemfile.. check the nash's answer – RameshVel Apr 12 '11 at 06:22

1 Answers1

5

You have to add hirb to Gemfile.

Vasiliy Ermolovich
  • 24,459
  • 5
  • 79
  • 77