Ruport::DataSet unitialized constant?

M

Michael Linfield

even runnin the simplest program such as this -

require "rubygems"
require "ruport"
require "ruport/util"

stuff = Ruport::DataSet.load("filename.csv")

###

gives me the error of uninitialized constant Ruport::DataSet
(NameError)

any idea why it cant find it even though ive doin all the -- gem install
ruport -y -- and what not?

Thanks :D
 
S

Stefan Mahlitz

Michael said:
even runnin the simplest program such as this -

require "rubygems"
require "ruport"
require "ruport/util"

stuff = Ruport::DataSet.load("filename.csv")

###

gives me the error of uninitialized constant Ruport::DataSet
(NameError)

any idea why it cant find it even though ive doin all the -- gem install
ruport -y -- and what not?

Well - Ruport::DataSet does not exist - take a look at
http://api.rubyreports.org/classes/Ruport/Data/Table/FromCSV.html

You may want to use

stuff = Ruport::Data::Table.load("filename.csv")

HTH

Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,097
Latest member
RayE496148
Top