Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Ruport::DataSet unitialized constant?
Michael Linfield
8/15/2007 8:32:00 PM
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
--
Posted via
http://www.ruby-...
.
1 Answer
Stefan Mahlitz
8/15/2007 10:41:00 PM
0
Michael Linfield wrote:
> 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/Fr...
You may want to use
stuff = Ruport::Data::Table.load("filename.csv")
HTH
Stefan
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Ruport::DataSet unitialized constant?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password