I am trying to use the gem gchartrb to create some graphs/charts in my RoR application.
I have looked into several tutorial and all say the same thing, that I have to add
require 'google_chart'
But I am getting the message:
no such file to load — google_chart
I have the require inside my controller, I have confirmed that the gem is installed.
I am using Rails 3.
Also, I have tried adding config.gem 'gchartrb', :lib => 'google_chart' in my environment.rb as suggested here but nothing changed
Thanks for your help
EDIT:
I have also tried with the gem googlecharts, what I have in my Gemfile is:
gem "googlecharts", :require => "gchart"
but I get no such file to load -- gchart when I try to load the view.
config.gemis for rails 2.3.X.For rails 3, you will need to add the gem to your Gemfile and run
gem bundleYou may also need to check that the google_charts gem actually supports Rails 3…
Given that the latest code update seems to have been in 2008 – that might not actually be likely. 🙁
You can try it anyway and see…