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-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.8Run
rake gems:installto install the
missing gems.
But the gem is installed! I also tried this variant:
config.gem 'mattetti-googlecharts', :lib => 'gcharts'
Use RubyGems repository. The GitHub gem is outdated.
Then in your app
You don’t need to require
gchartbecause of this. Also note, you were trying to requiregcharts.rb, notgchart.rb.