Solved

Ruby - using Ruport

Posted on 2008-10-02
1
420 Views
Last Modified: 2012-05-05
Hello
Just started looking at Ruport and when using a very simple example -

t = Table("c:/ruport.txt")
  grouping = Grouping(t,:by => "name")
  puts grouping.to_pdf

I get an error .....
ruport_test2.rb:7: undefined method `Table' for main:Object (NoMethodError)

Any ideas as to why?
Does anybody use Ruport and if so what are your thoughts.

Phil
0
Comment
Question by:philsivyer
1 Comment
 
LVL 2

Accepted Solution

by:
karfi earned 250 total points
ID: 22932850
put the following line before using ruport classes:

require 'ruport'
# and your code here
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question