# Rails Report Generator that can read associations

**URL:** <https://www.ruby-forum.com/t/rails-report-generator-that-can-read-associations/192040>\
**Category:** Rails\
**Created:** [July 22, 2010, 9:45pm UTC](https://www.ruby-forum.com/t/rails-report-generator-that-can-read-associations/192040 "2010-07-22T21:45:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joep](https://www.ruby-forum.com/u/joep)\
**Post date:** [July 22, 2010, 9:45pm UTC](https://www.ruby-forum.com/t/rails-report-generator-that-can-read-associations/192040/1 "2010-07-22T21:45:28Z")

</div>

Howdoo everyone,

I’m looking for a Rails plugin or gem that can allow users to generate  
very flexible reports. Ideally, it should be able to:

1. Allow a user to select a model (from a list made by me) to generate a  
report on.

2. Once they choose the model (say, Team), they’ll be able to choose  
which Team fields to include in the report, such as team\_name or  
team\_city.

Also, they’ll be able to choose fields from associated models; for  
example, if a Team has many Players, they’ll be able to pick fields from  
Players to show in the report, such as last\_name or went\_pro\_on.

1. They’ll be able to set criteria for what is shown in the report, such  
as only Teams with over 10 Players, or to only include Players with  
last\_name contains “blah”.

2. Lastly (not as important), the ability to generate this report as a  
CSV or PDF or what have you.

Does a plugin or gem exist that does all (or most) of this? If so,  
it’ll save a lot time.

Let me know if anyone knows of something like this. Gracias!

---

<div class="post-metadata">

**Author:** ![joep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joep](https://www.ruby-forum.com/u/joep)\
**Post date:** [August 15, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/rails-report-generator-that-can-read-associations/192040/2 "2010-08-15T13:07:03Z")

</div>

Hi Joe,  
Did anyone ever get back to you about this?
