# Ruby-Reports how to use with Rails

**URL:** <https://www.ruby-forum.com/t/ruby-reports-how-to-use-with-rails/73440>\
**Category:** Ruby\
**Created:** [October 24, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/ruby-reports-how-to-use-with-rails/73440 "2006-10-24T18:02:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnlester](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Post date:** [October 24, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/ruby-reports-how-to-use-with-rails/73440/1 "2006-10-24T18:02:59Z")

</div>

```
 I am in the process of trying to write some code in ruby that will 

```

take a file as input and parse the file. Particularly I would like to  
be able to extract functions from .c and .cpp files and then run metrics  
on them. I have just heard about Ruport but I can’t find any tutorials  
or examples of how to use this utility or install it in rails. Any help  
would be appreciated.

---

<div class="post-metadata">

**Author:** ![johnlester](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Post date:** [October 24, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/ruby-reports-how-to-use-with-rails/73440/2 "2006-10-24T18:48:10Z")

</div>

John L. wrote:

> I am in the process of trying to write some code in ruby that will  
> take a file as input and parse the file. Particularly I would like to  
> be able to extract functions from .c and .cpp files and then run metrics  
> on them. I have just heard about Ruport but I can’t find any tutorials  
> or examples of how to use this utility or install it in rails. Any help  
> would be appreciated.

Hi John. It’s great to hear you are trying out Ruport! Hopefully it  
will be helpful to you.  
We don’t have parsing stuff built into Ruport just yet, but as far as  
running metrics and displaying them, we may be able to help you there.

We usually hold all our discussions on the Ruport mailing list. You  
can sign up here:  
[http://rubyurl.com/oMY](http://rubyurl.com/oMY)

Please repost there this message along with some details of the types  
of metrics you would like to run and also what the parsed data will end  
up looking like.

As far as acts\_as\_reportable goes, it’s really quite basic so far, but  
also pretty easy to use to get going with Ruport. If you post on the  
mailing list, Dudley will be sure to get you going with how to install  
it. The bare minimum install instructions are here, though:  
[http://rubyurl.com/Jyg](http://rubyurl.com/Jyg)

Hope to see you on the list and hope you find Ruport helpful!

-Greg
