我按照hirb rdoc上的教程進行操作,但不幸的是,我的滑軌控制檯根本無法工作。Hirb在滑軌控制檯上根本不起作用
我已經做了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
莫非有人幫忙嗎?
不要使用sudo來安裝寶石。 – codeit
感謝評論,我怎麼能得到「寶石安裝」沒有sudo工作? – jramby
查看帖子的Rails部分:http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ – codeit