我按照hirb rdoc上的教程进行操作,但不幸的是,我的 rails 控制台根本无法工作。
我已经完成了sudo gem install hirb
并将 hirb 添加到我的 Gemfile 中:
gem 'hirb', '~>0.7.0'
然后我启动了bundle install
我得到了这个结果:
rails c
Loading development environment (Rails 3.2.11)
> require 'hirb'
=> false
> Hirb.enable
=> true
> Municipality.all
Municipality Load (0.8ms) SELECT "municipalities".* FROM "municipalities" ORDER BY name asc
=> [#<Municipality id: 1, district_id: 6, name: "Ambalamanasy II", created_at: "2013-01-16 12:11:45", updated_at: "2013-01-16 12:11:45">,
...
# doesn't work
有人可以帮忙吗?