Solved

Ruby - using Ruport

Posted on 2008-10-02
1
421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Title # Comments Views Activity
Ruby on Rails Installation Error 5 320
Find instance method "where" in Rails Docs 5 473
Timed out after 5000ms (Selenium::CommandError) 2 500
Ruby cannot load file problem 7 580
I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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