ruby-on-railsrubypluginsirbhirb

why irb plugins not loaded in rails console session?


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?


Solution

  • You have to add hirb to Gemfile.