0
我已經安裝了這個gem:googlecharts.rubyforge.org,但我不想每次需要它時都需要它,所以我試圖去做它Rails的方式:安裝了gem的Rails config.gem錯誤
config.gem 'mattetti-googlecharts'
那我走了,開始我的服務器和得到這個錯誤:
Missing these required gems:
mattetti-googlechartsYou're running: ruby 1.8.7.174 at /usr/bin/ruby1.8 rubygems 1.3.5 at /home/laptop/.gem/ruby/1.8, /var/lib/gems/1.8
Run
rake gems:install
to install the missing gems.
但安裝了寶石!我也試過這個變種:
config.gem 'mattetti-googlecharts', :lib => 'gcharts'
Tnxs。你能解釋爲什麼config.gem'mattetti-googlecharts'不起作用嗎?如果它已更新,我應該只調用每個'googlecharts'嗎? – 2010-08-17 17:37:10
因爲你需要'gchart'而不是'gchart' – 2010-08-18 00:11:58