Gerbil Charts

3 views
Skip to first unread message

Dan Bram

unread,
Jan 20, 2010, 3:42:38 PM1/20/10
to tri...@googlegroups.com
Hello Vivek,

Thank you for working on this graphing and charting gem. It appears to be easy to use.

I did find an issue with the code however. 
http://gerbilcharts.rubyforge.org/

For Linux Users, the following creates an app called "generate", not "gtest".

Generate a test app called gtest

rails generate gtest

and following the instruction:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Create a controller

cd gtest
ruby script/generate controller tgerbil

Copy the following code into app/controllers/tgerbil_controller.rb

require 'gerbilcharts'

class GerbtController < ApplicationController

# render inline to browser without using a temp file
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

causes the following error:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

LoadError in TgerbilController#tgerb

Expected /home/dan/Sites/gtest/app/controllers/tgerbil_controller.rb to define TgerbilController

>>>>>>>>>>>>>>>>>>>>>>>>>>

This is do to not following the naming convention of Rails, or maybe a simple typo. the class needs to be:
"class TgerbilController < ApplicationController"


Thanks again and I look forward to following your progress.

Dan

Reply all
Reply to author
Forward
0 new messages