Noobie: error on require 'ruport'

4 views
Skip to first unread message

sweari...@mac.com

unread,
May 22, 2009, 2:28:32 PM5/22/09
to Ruby Reports
I'm on Windows, Ruby 1.8.6, have ruport 1.6.1 and ruport-util 0.14.0
installed, and their dependencies.

My program:

require 'rubygems'
require 'ruport'
require 'ruport/util'

Returns:

Error: "Uninitialized constant Ruport::Report::Controller"

Or I can do a one-liner like:


Thanks for any suggestions.

gluis

unread,
May 22, 2009, 8:03:42 PM5/22/09
to Ruby Reports
i don't see much of what you've written--it looks like there's
supposed to be code here?

but guessing from what appears in your post, it looks like what you
want is:

Ruport::Controller if you're trying to use a model that inherits
Ruport's controller class. or, if you just want a report, you use
Ruport::Report. you might be conflating the two classes. the ruport
book is a fantastic resource:

http://ruportbook.com/

hth,

louis
Reply all
Reply to author
Forward
0 new messages