Questions tagged [ruport]

19 questions
7
votes
3 answers

Resolving a class name conflict in a Rails application

I have been building a Rails application that performs accounting functionality. As part of this, I have a model with the class name Transaction. So far so good, I have been building this functionality for a month or so, and everything is working as…
aaronrussell
  • 9,389
  • 5
  • 38
  • 62
6
votes
1 answer

Rails, two dimensional table, pivot, nested hash loops

I am building grade-book report - a two dimensional table that shows lesson names going horizontally and a list of students going vertically. Student Name | LessonID x | LessonID x | LessonID x Joe 95% 95% Mary …
Alex
  • 140
  • 1
  • 9
2
votes
3 answers

Text Formatting in Ruby (For Packing Slips)

I need to generate formatted text packing slips for a Ruby on Rails project I'm working on. I'm considering using Ruport or just formatting it myself in a string and outputting it to text. The only challenge is justifying all of the output…
Dave Rapin
  • 1,471
  • 14
  • 18
2
votes
1 answer

How to store ruport table data object in a database?

I intend to store a nightly build of report data in a DB and then use formatters when a user requests for a report in real-time. A few clues... The Ruport::Data::Table object - that contains the data - is a collection of Ruport::Data::Record…
nareshb
  • 201
  • 1
  • 6
2
votes
2 answers

Ruport - undefined method `each' for "":String

I am following the first example in this tutorial: http://ruportbook.com/printable_documents.html, but I'm getting undefined method `each' for "":String all the time, I created a new file with this code: class MultiTableController <…
el_quick
  • 4,656
  • 11
  • 45
  • 53
1
vote
2 answers

how to config ruport in the environment.rb

i have installed ruport gem along with its ruport-utils packages and act_as_reportable gem too.... e "Ash::Application.initialize! Rails::Initializer.run do |config| config.after_initialize do require "ruport" end end" when…
Mackzie
  • 41
  • 1
  • 11
1
vote
2 answers

How do I programatically override the formatter of a Ruport data table?

I have a pretty straight-forward Ruport setup in my Rails app, where the Ruport controller is passed a Report::Data::Table instance: class Reporter < Ruport::Controller stage :headline, :data, :footer required_option :report def setup …
andrewdotnich
  • 16,195
  • 7
  • 38
  • 57
1
vote
1 answer

Display math powers using Ruby PDF::Writer or Ruport?

Is there an easy way to display powers in PDF generated using the Ruby PDF::Writer library? I realize that I can just print the exponent a bit higher than the base number, however I thought maybe there is some easier way to do this... such as a…
JP Richardson
  • 38,609
  • 36
  • 119
  • 151
1
vote
1 answer

Underline in Ruby Report

Hey all, I'm trying a very simple thing here in Ruport but I don't seem able to get it working. All I want is underline a part of a text. I already have the substring that I want to underline, because i thought would do the trick ( and…
Ignace
  • 245
  • 2
  • 5
  • 12
1
vote
3 answers

Ruby on Rails Report Generator

Is there a way that I can produce a report in RoR without using Ruport or any other report generator rails plugin?
Cecille Manalang
  • 213
  • 3
  • 14
1
vote
3 answers

How to Group by Day with Ruport / Ruby on Rails?

I'm trying to evaluate Ruport for use in my Rails app, but am not sure how to take a series of records with date/time stamps and group them via Ruport's grouping functions. I'm open to other/better methods to do this same grouping if Ruport doesn't…
Mike Buckbee
  • 6,793
  • 2
  • 33
  • 36
0
votes
2 answers

Newbie - trying to save a datagrid to pdf

I'm using the gem datagrid to display some data. I would like to use ruport to output the data to pdf. I added this button to my controller.rb= <%= button_to "PDF", {:controller => :admin_reports, :action => :worequest_pdf }%> I have this…
Reddirt
  • 5,913
  • 9
  • 48
  • 126
0
votes
1 answer

Rails Ruport using SQL

Guys I'm using Ruport gem for Ruby Reporting, I gone through basic coding and configuration as follows class Project < ActiveRecord::Base acts_as_reportable end and in IRB console i tried as follows irb(main):001:0> puts Project.report_table and…
Unknown Coder
  • 1,510
  • 2
  • 28
  • 56
0
votes
1 answer

How to include the ruport/acts_as_reportable gems for JRuby using Warbler?

I am using JRuby 1.4.0 and want to use Ruport to make CSV files. This perfectly works until I make a war-file from it with warbler to put it on a server. When I add the following code to environment.rb, JRuby complains there is No such file to load…
Daan
  • 15
  • 4
0
votes
1 answer

Conflicting column names in Ruport report table

When using Ruport to make a CSV file for entities containing the same entities, the generated column names create conflicts, causing Ruport to show only the first occurence of this column(s). To make this abstract explanation more clear and less…
Daan
  • 3
  • 2
1
2