<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com/group/ruby-reports</id>
  <title type="text">Ruby Reports Google Group</title>
  <subtitle type="text">
  This is the discussion list for Ruby Reports (http://rubyreports.org), a simple reporting framework for Ruby. Any topic remotely related to the software is welcome, so feel free to share what&#39;s on your mind!
  </subtitle>
  <link href="/group/ruby-reports/feed/atom_v1_0_msgs.xml" rel="self" title="Ruby Reports feed"/>
  <updated>2009-11-23T22:22:43Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>urbanus</name>
  <email>urba...@240gl.org</email>
  </author>
  <updated>2009-11-23T22:22:43Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/568561ff4e6c2bbe?show_docid=568561ff4e6c2bbe</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/568561ff4e6c2bbe?show_docid=568561ff4e6c2bbe"/>
  <title type="text">Re: Documatic - is this the current repo ?</title>
  <summary type="html" xml:space="preserve">
  Hi Thibaut, &lt;br&gt; &lt;p&gt;Thanks for contacting me. At the moment I&#39;m not doing any development &lt;br&gt; work in Ruby at all, let alone Documatic. &lt;br&gt; &lt;p&gt;I certainly agree it would be a good idea to move it to github.com. &lt;br&gt; Problem is, I can&#39;t guarantee I would be able to give it the attention &lt;br&gt; it deserves (bug fixes, pulling other people&#39;s changes etc.). I don&#39;t
  </summary>
  </entry>
  <entry>
  <author>
  <name>Thibaut Barrère</name>
  <email>thibaut.barr...@gmail.com</email>
  </author>
  <updated>2009-11-23T10:07:03Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/42fd0a2b926fb615?show_docid=42fd0a2b926fb615</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/42fd0a2b926fb615?show_docid=42fd0a2b926fb615"/>
  <title type="text">Re: Documatic - is this the current repo ?</title>
  <summary type="html" xml:space="preserve">
  I&#39;m getting in touch with Dave Nelson. &lt;br&gt; &lt;p&gt;will keep you posted, &lt;br&gt; &lt;p&gt;Thibaut &lt;br&gt; -- &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.learnivore.com&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Gregory Brown</name>
  <email>gregory.t.br...@gmail.com</email>
  </author>
  <updated>2009-11-17T15:09:53Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/24b2465f52cbaf01?show_docid=24b2465f52cbaf01</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/24b2465f52cbaf01?show_docid=24b2465f52cbaf01"/>
  <title type="text">Re: [ruport] Re: Documatic - is this the current repo ?</title>
  <summary type="html" xml:space="preserve">
  On Tue, Nov 17, 2009 at 3:58 AM, Thibaut Barrère &lt;br&gt; Thibaut. I definitely won&#39;t pull the trigger before ensuring there is &lt;br&gt; a live copy up somewhere, but not a bad idea. &lt;br&gt; -greg
  </summary>
  </entry>
  <entry>
  <author>
  <name>Thibaut Barrère</name>
  <email>thibaut.barr...@gmail.com</email>
  </author>
  <updated>2009-11-17T08:58:19Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/1e75d78be40ef84f?show_docid=1e75d78be40ef84f</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/1e75d78be40ef84f?show_docid=1e75d78be40ef84f"/>
  <title type="text">Re: Documatic - is this the current repo ?</title>
  <summary type="html" xml:space="preserve">
  Hi Greg, &lt;br&gt; &lt;p&gt;I couldn&#39;t find anything matching documatic on github. &lt;br&gt; &lt;p&gt;Urbanus are you monitoring this list ? What about moving to github ? &lt;br&gt; &lt;p&gt;If there&#39;s no reply, I&#39;ll make a copy over at github myself to avoid &lt;br&gt; this going into the void. &lt;br&gt; &lt;p&gt;-- Thibaut
  </summary>
  </entry>
  <entry>
  <author>
  <name>Gregory Brown</name>
  <email>gregory.t.br...@gmail.com</email>
  </author>
  <updated>2009-11-16T15:15:36Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/9e54e51ab80d0619?show_docid=9e54e51ab80d0619</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/9e54e51ab80d0619?show_docid=9e54e51ab80d0619"/>
  <title type="text">Re: [ruport] Documatic - is this the current repo ?</title>
  <summary type="html" xml:space="preserve">
  On Mon, Nov 16, 2009 at 5:39 AM, Thibaut Barrère &lt;br&gt; Actually not sure if urbanus ever got this stuff over to Github. If &lt;br&gt; not, then yes. &lt;br&gt; Hopefully he&#39;ll move it, because I will eventually take down that old &lt;br&gt; svn+trac host. &lt;br&gt; -greg
  </summary>
  </entry>
  <entry>
  <author>
  <name>Thibaut Barrère</name>
  <email>thibaut.barr...@gmail.com</email>
  </author>
  <updated>2009-11-16T10:39:49Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/5069afef54283abc?show_docid=5069afef54283abc</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/3b02bad64fd4f57f/5069afef54283abc?show_docid=5069afef54283abc"/>
  <title type="text">Documatic - is this the current repo ?</title>
  <summary type="html" xml:space="preserve">
  Hello, &lt;br&gt; &lt;p&gt;just wondering, is this repository the current one for documatic ? &lt;br&gt; &lt;p&gt;&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://stonecode.svnrepository.com/documatic/trac.cgi/browser&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;p&gt;best, &lt;br&gt; &lt;p&gt;Thibaut &lt;br&gt; -- &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.learnivore.com&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Karl Baum</name>
  <email>karl.b...@gmail.com</email>
  </author>
  <updated>2009-10-21T01:01:26Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/38c0d3067919afb0/3bc7d6e39270f998?show_docid=3bc7d6e39270f998</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/38c0d3067919afb0/3bc7d6e39270f998?show_docid=3bc7d6e39270f998"/>
  <title type="text">Re: [ruport] Re: Combining data from two different queries</title>
  <summary type="html" xml:space="preserve">
  Hi Andrew. I ended up using a slightly different approach. Instead of &lt;br&gt; building the table directly from the SQL statement, I created a table &lt;br&gt; manually using methods on my ActiveRecord objects. It ended up being much &lt;br&gt; simpler this way. I think I was headed down the wrong path with my question &lt;br&gt; below.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Andrew France</name>
  <email>andrew+li...@avito.co.uk</email>
  </author>
  <updated>2009-10-20T23:16:24Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/38c0d3067919afb0/03043f6be3787648?show_docid=03043f6be3787648</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/38c0d3067919afb0/03043f6be3787648?show_docid=03043f6be3787648"/>
  <title type="text">Re: [ruport] Combining data from two different queries</title>
  <summary type="html" xml:space="preserve">
  Hi Karl, &lt;br&gt; Have you tried using SQL sub-selects? I can never remember the syntax &lt;br&gt; without looking it up but it&#39;s something like: &lt;br&gt; SELECT signup.code, signup.count, visit.count FROM (SELECT count(*), &lt;br&gt; c.code FROM signups s......) AS signup JOIN (SELECT ....) AS visit ON &lt;br&gt; visit.code = signup.code; &lt;br&gt; You can do this via either model, I don&#39;t think it cares what attributes
  </summary>
  </entry>
  <entry>
  <author>
  <name>Karl Baum</name>
  <email>karl.b...@gmail.com</email>
  </author>
  <updated>2009-10-20T15:21:58Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/38c0d3067919afb0/a11653b2c456911b?show_docid=a11653b2c456911b</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/38c0d3067919afb0/a11653b2c456911b?show_docid=a11653b2c456911b"/>
  <title type="text">Combining data from two different queries</title>
  <summary type="html" xml:space="preserve">
  On our website we track visits and signups for each of our campaigns. Visit &lt;br&gt; is a unique visit to the site and a visit is associated with a signup if &lt;br&gt; that user signs up. I created a table for visits: &lt;br&gt; s,campaigns c where s.campaign_id=c.id and s.user_id is not null group by code&amp;quot; &lt;br&gt; +---------------------+
  </summary>
  </entry>
  <entry>
  <author>
  <name>szimek</name>
  <email>szi...@gmail.com</email>
  </author>
  <updated>2009-10-13T12:16:44Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/6acbbccf24a4bfb9/cad0dd190ab224f2?show_docid=cad0dd190ab224f2</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/6acbbccf24a4bfb9/cad0dd190ab224f2?show_docid=cad0dd190ab224f2"/>
  <title type="text">Re: Problem with multiple grouping</title>
  <summary type="html" xml:space="preserve">
  Ok, I think I got it. &lt;br&gt; Having months array I can iterate over months instead of subgroups and &lt;br&gt; select each subgroup by month. If it exists I can display its &lt;br&gt; data.size, otherwise just 0.
  </summary>
  </entry>
  <entry>
  <author>
  <name>szimek</name>
  <email>szi...@gmail.com</email>
  </author>
  <updated>2009-10-13T12:04:03Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/6acbbccf24a4bfb9/514790c333322a5e?show_docid=514790c333322a5e</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/6acbbccf24a4bfb9/514790c333322a5e?show_docid=514790c333322a5e"/>
  <title type="text">Re: Problem with multiple grouping</title>
  <summary type="html" xml:space="preserve">
  Thanks, this solves the problem with months and I just found out about &lt;br&gt; the problem you mentioned :) &lt;br&gt; The code assumes that each user will have entries for every month, &lt;br&gt; which is not the case, so iterating over sub groups to display the &lt;br&gt; table doesn&#39;t really work that well. &lt;br&gt; &lt;p&gt;So what&#39;s the possible solution?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Andrew France</name>
  <email>andrew+li...@avito.co.uk</email>
  </author>
  <updated>2009-10-13T11:41:49Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/6acbbccf24a4bfb9/7413760ff3c4f246?show_docid=7413760ff3c4f246</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/6acbbccf24a4bfb9/7413760ff3c4f246?show_docid=7413760ff3c4f246"/>
  <title type="text">Re: [ruport] Problem with multiple grouping</title>
  <summary type="html" xml:space="preserve">
  Hi Szimek, &lt;br&gt; Your code assumes that each user will have entries for the same months? &lt;br&gt; If that&#39;s the case, grabbing the keys from the first subgroup hash &lt;br&gt; should work? &lt;br&gt; You could also just: &lt;br&gt; @months = @table.map {|r| r[&#39;created_on_month&#39;] }.sort.uniq &lt;br&gt; If I&#39;m missing something you&#39;ll have to explain to me a bit further!
  </summary>
  </entry>
  <entry>
  <author>
  <name>szimek</name>
  <email>szi...@gmail.com</email>
  </author>
  <updated>2009-10-13T10:47:34Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/6acbbccf24a4bfb9/c7f51ad83cfc0aea?show_docid=c7f51ad83cfc0aea</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/6acbbccf24a4bfb9/c7f51ad83cfc0aea?show_docid=c7f51ad83cfc0aea"/>
  <title type="text">Problem with multiple grouping</title>
  <summary type="html" xml:space="preserve">
  Hi, &lt;br&gt; &lt;p&gt;I&#39;m trying to create a report with user activity across the last few &lt;br&gt; months. I&#39;d like to create a table where on X axis (table header) &lt;br&gt; there&#39;d be month names and on Y axis (first table cell in every row) &lt;br&gt; would be user name. &lt;br&gt; &lt;p&gt;Here&#39;s what I got right now: &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://pastie.org/652718&quot;&gt;[link]&lt;/a&gt;. &lt;br&gt; The problem is that I don&#39;t really know how to diplay all months in
  </summary>
  </entry>
  <entry>
  <author>
  <name>Tygo</name>
  <email>hugo....@gmail.com</email>
  </author>
  <updated>2009-10-05T11:06:20Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/129e31e8d6242425/6ec09d5287f662e7?show_docid=6ec09d5287f662e7</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/129e31e8d6242425/6ec09d5287f662e7?show_docid=6ec09d5287f662e7"/>
  <title type="text">Re: Ruport and WillPaginate</title>
  <summary type="html" xml:space="preserve">
  Hello Sylvain, &lt;br&gt; Thanks for the tips. &lt;br&gt; &lt;p&gt;Because I need to use :include with ruport, I needed a count method &lt;br&gt; that works with Ruport but I didn&#39;t found one so I created one myself &lt;br&gt; - using code from report_table from act_as_reportable (see bellow). &lt;br&gt; def count_table(number = :all, options = {}) &lt;br&gt; only = options.delete(:only)
  </summary>
  </entry>
  <entry>
  <author>
  <name>Sylvain Abélard</name>
  <email>sylvain.abel...@gmail.com</email>
  </author>
  <updated>2009-09-23T07:40:22Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/129e31e8d6242425/5c7ac635b8ad0825?show_docid=5c7ac635b8ad0825</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/129e31e8d6242425/5c7ac635b8ad0825?show_docid=5c7ac635b8ad0825"/>
  <title type="text">Re: [ruport] Ruport and WillPaginate</title>
  <summary type="html" xml:space="preserve">
  Hi Tygo, &lt;br&gt; WillPaginate does what you want by default, no need for additional steps. &lt;br&gt; It has two options you could use : &lt;br&gt; Instead of loading, counting, then discarding all but the 20 elements &lt;br&gt; you want, you can do a simple &amp;quot;count&amp;quot; request (ActiveRecord::count or &lt;br&gt; pure SQL) that will not map DB records to Ruby objects, saving much
  </summary>
  </entry>
</feed>
