0

I already have installed this gem: googlecharts.rubyforge.org, but I don't want to require it every time I need it on my actions, so I am trying to do it the Rails way:

config.gem 'mattetti-googlecharts'

Then I go and start my server and get this error:

Missing these required gems:
mattetti-googlecharts

You'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.

But the gem is installed! I also tried this variant:

config.gem 'mattetti-googlecharts', :lib => 'gcharts'

1 Answer 1

3

Use RubyGems repository. The GitHub gem is outdated.

$ gem install googlecharts

Then in your app

config.gem 'googlecharts'

You don't need to require gchart because of this. Also note, you were trying to require gcharts.rb, not gchart.rb.

2
  • Tnxs. Can you explain why config.gem 'mattetti-googlecharts' did not work? If it were updated, should I invoke only per 'googlecharts' ? Aug 17, 2010 at 17:37
  • Because you were requiring gcharts instead of gchart Aug 18, 2010 at 0:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.