Help needed with ruport

#1

Hi,

I am trying to create a report using ruport but I am getting an error.

I used this code from https://www.rubydoc.info/github/ruport/ruport-util/Ruport/Report

require "rubygems"
require "ruport"
class MyReport < Ruport::Report 

  renders_as_grouping(:style => :inline)   

  def renderable_data(format)
    table = Table("foo.csv")
    Grouping(table, :by => "username")
  end  

end   

report = MyReport.new
report.save_as("bar.pdf")

I am getting this error:
in `<top (required)>': uninitialized constant Ruport::Report (NameError) Did you mean? Ruport

Thanks in advance!

Semone.