<?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-06-17T14:25:19Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Halfordian Golfer</name>
  <email>walke...@gmail.com</email>
  </author>
  <updated>2009-06-17T14:25:19Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/f73cf8dd265a578f?show_docid=f73cf8dd265a578f</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/f73cf8dd265a578f?show_docid=f73cf8dd265a578f"/>
  <title type="text">Re: acts_as_reportable basic questions for relatively complex data model</title>
  <summary type="html" xml:space="preserve">
  Been experimenting with this for a while and still getting an error. &lt;br&gt; Any thoughts much appreciated. &lt;br&gt; &lt;p&gt;Here&#39;s the line and stack trace. &lt;br&gt; &lt;p&gt; @table = ModelA.report_table(:all, :only =&amp;gt; &lt;br&gt; [:id, :name], :include =&amp;gt; {:model_b =&amp;gt; {:only =&amp;gt; [:name], :include =&amp;gt; &lt;br&gt; {:model_c =&amp;gt; {:only =&amp;gt; [:name], :include =&amp;gt; :model_d }}}})
  </summary>
  </entry>
  <entry>
  <author>
  <name>Halfordian Golfer</name>
  <email>walke...@gmail.com</email>
  </author>
  <updated>2009-06-13T14:23:34Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/2df46ac27f8ec7b3?show_docid=2df46ac27f8ec7b3</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/2df46ac27f8ec7b3?show_docid=2df46ac27f8ec7b3"/>
  <title type="text">Re: acts_as_reportable basic questions for relatively complex data model</title>
  <summary type="html" xml:space="preserve">
  Duh. I see that this was answered already. Very helpful!!! &lt;br&gt; &lt;p&gt;Thanks, &lt;br&gt; &lt;p&gt;Tim
  </summary>
  </entry>
  <entry>
  <author>
  <name>Halfordian Golfer</name>
  <email>walke...@gmail.com</email>
  </author>
  <updated>2009-06-13T14:22:15Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/d4373ce39c243d13?show_docid=d4373ce39c243d13</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/d4373ce39c243d13?show_docid=d4373ce39c243d13"/>
  <title type="text">Re: acts_as_reportable basic questions for relatively complex data model</title>
  <summary type="html" xml:space="preserve">
  Just another quick question on this. &lt;br&gt; &lt;p&gt;In the example where: &lt;br&gt; &lt;p&gt;model_a has many model_b through model_c &lt;br&gt; &lt;p&gt;Do you need to include model_c? &lt;br&gt; &lt;p&gt;Thanks, &lt;br&gt; &lt;p&gt;Tim
  </summary>
  </entry>
  <entry>
  <author>
  <name>Halfordian Golfer</name>
  <email>walke...@gmail.com</email>
  </author>
  <updated>2009-06-11T12:50:09Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/0d7964068150c281?show_docid=0d7964068150c281</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/0d7964068150c281?show_docid=0d7964068150c281"/>
  <title type="text">Re: acts_as_reportable basic questions for relatively complex data model</title>
  <summary type="html" xml:space="preserve">
  Hi Andrew, &lt;br&gt; &lt;p&gt;This is exactly what I was looking for and points me back in the right &lt;br&gt; direction. &lt;br&gt; &lt;p&gt;My question about the id&#39;s stems from the use of it in various &lt;br&gt; examples that I may have been reading too much in to. It was looking &lt;br&gt; like you&#39;d need to ensure the id column was present if it was to be
  </summary>
  </entry>
  <entry>
  <author>
  <name>Andrew France</name>
  <email>andrew+li...@avito.co.uk</email>
  </author>
  <updated>2009-06-11T09:16:12Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/2ddb72897e3cc2ef?show_docid=2ddb72897e3cc2ef</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/2ddb72897e3cc2ef?show_docid=2ddb72897e3cc2ef"/>
  <title type="text">Re: [ruport] acts_as_reportable basic questions for relatively complex data model</title>
  <summary type="html" xml:space="preserve">
  Hi Tim, &lt;br&gt; Model_c is not a relation on model_a, you want a nested include: &lt;br&gt; And if you wanted model_d: &lt;br&gt; Don&#39;t ask for the model_d and model_c relations from model_b at the same &lt;br&gt; level as it will cause duplicates (see many previous messages on list). &lt;br&gt; I&#39;m afraid you&#39;d actually have to give the exception message and a few
  </summary>
  </entry>
  <entry>
  <author>
  <name>willemaster</name>
  <email>will.mas...@gmail.com</email>
  </author>
  <updated>2009-06-11T04:17:43Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/957043d18a82b1a7/985b4d267f57c793?show_docid=985b4d267f57c793</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/957043d18a82b1a7/985b4d267f57c793?show_docid=985b4d267f57c793"/>
  <title type="text">Table data manipulation/copying columns - simple question... I think</title>
  <summary type="html" xml:space="preserve">
  Hi, &lt;br&gt; &lt;p&gt;I&#39;m new to this and though I think this is a simple operation, I can&#39;t &lt;br&gt; find the answer here or in the documentation. &lt;br&gt; &lt;p&gt;What is the best way to take two columns from a Table and copy them to &lt;br&gt; a new Table. E.g. Table 1 has columns a,b,c,d with data, I want to &lt;br&gt; create a new Table, Table 2, with two columns equal to b and d from
  </summary>
  </entry>
  <entry>
  <author>
  <name>Halfordian Golfer</name>
  <email>walke...@gmail.com</email>
  </author>
  <updated>2009-06-11T01:45:14Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/9f55660b3d3b0ec8?show_docid=9f55660b3d3b0ec8</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/73f52e37eec7fc72/9f55660b3d3b0ec8?show_docid=9f55660b3d3b0ec8"/>
  <title type="text">acts_as_reportable basic questions for relatively complex data model</title>
  <summary type="html" xml:space="preserve">
  Hi, &lt;br&gt; &lt;p&gt;I have a fairly complex domain that I am trying to report on and am &lt;br&gt; having &lt;br&gt; difficulty with report_table. &lt;br&gt; &lt;p&gt;But, my basic question is about the general use of :include. &lt;br&gt; &lt;p&gt;model_a has many model_b &lt;br&gt; model_b has many model_c &lt;br&gt; model_b has many model_d through model_c &lt;br&gt; &lt;p&gt;When I do: &lt;br&gt; model_a.report_table(:all, :include =&amp;gt; [:model_b])
  </summary>
  </entry>
  <entry>
  <author>
  <name>Benjamín Cárdenas Salamandra</name>
  <email>bencar...@gmail.com</email>
  </author>
  <updated>2009-05-27T18:47:28Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/007f3449174686e2/ae7207bc6f0250db?show_docid=ae7207bc6f0250db</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/007f3449174686e2/ae7207bc6f0250db?show_docid=ae7207bc6f0250db"/>
  <title type="text">Re: [ruport] not request for help, just THANKS!</title>
  <summary type="html" xml:space="preserve">
  +1, thanks so much too, &lt;br&gt; &lt;p&gt;Benjamín &lt;br&gt; &lt;p&gt;gluis escribió:
  </summary>
  </entry>
  <entry>
  <author>
  <name>Gregory Brown</name>
  <email>gregory.t.br...@gmail.com</email>
  </author>
  <updated>2009-05-27T17:40:07Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/007f3449174686e2/a23229c5eaaae3d3?show_docid=a23229c5eaaae3d3</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/007f3449174686e2/a23229c5eaaae3d3?show_docid=a23229c5eaaae3d3"/>
  <title type="text">Re: [ruport] not request for help, just THANKS!</title>
  <summary type="html" xml:space="preserve">
  Wow, don&#39;t see posts like this often. That makes my day, so thank you! &lt;br&gt; -greg
  </summary>
  </entry>
  <entry>
  <author>
  <name>gluis</name>
  <email>louisju...@gmail.com</email>
  </author>
  <updated>2009-05-27T17:23:41Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/007f3449174686e2/29e80fc5fec70f81?show_docid=29e80fc5fec70f81</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/007f3449174686e2/29e80fc5fec70f81?show_docid=29e80fc5fec70f81"/>
  <title type="text">not request for help, just THANKS!</title>
  <summary type="html" xml:space="preserve">
  just a HUGE thanks to every one of you who worked on and maintain &lt;br&gt; ruport, acts_as_reportable, ruport/utils, and everything else related! &lt;br&gt; &lt;p&gt;you have done such a great service for all of us. &lt;br&gt; &lt;p&gt;thanks.
  </summary>
  </entry>
  <entry>
  <author>
  <name>gluis</name>
  <email>louisju...@gmail.com</email>
  </author>
  <updated>2009-05-26T17:23:00Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/36be042790252640/ce478b0b26e22eeb?show_docid=ce478b0b26e22eeb</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/36be042790252640/ce478b0b26e22eeb?show_docid=ce478b0b26e22eeb"/>
  <title type="text">Re: acts_as_reportable: duplicate records returned when two models used with :include</title>
  <summary type="html" xml:space="preserve">
  well, this works (nesting). thanks! one note, i get some warnings &lt;br&gt; before the results, which might be of interest to you as the &lt;br&gt; maintainer: &lt;br&gt; &lt;p&gt;/usr/local/lib/ruby/gems/1.8/g ems/activerecord-2.3.2/lib/act ive_record/ &lt;br&gt; associations/association_proxy .rb:221: warning: default `to_a&#39; will be &lt;br&gt; obsolete &lt;br&gt; /usr/local/lib/ruby/gems/1.8/g ems/activerecord-2.3.2/lib/act ive_record/
  </summary>
  </entry>
  <entry>
  <author>
  <name>gluis</name>
  <email>louisju...@gmail.com</email>
  </author>
  <updated>2009-05-26T17:10:46Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/36be042790252640/77c3441a1e527625?show_docid=77c3441a1e527625</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/36be042790252640/77c3441a1e527625?show_docid=77c3441a1e527625"/>
  <title type="text">Re: acts_as_reportable: duplicate records returned when two models used with :include</title>
  <summary type="html" xml:space="preserve">
  thanks, andrew. i would have replied sooner, but i was offline all &lt;br&gt; weekend. i&#39;ll test this today. &lt;br&gt; &lt;p&gt;ftr, i&#39;m using ar 2.3.2 &lt;br&gt; &lt;p&gt;the third strangeness was just pointing out that if i only include one &lt;br&gt; model, it works as expected.but if i do the equivalent of a &#39;where&#39; &lt;br&gt; clause by using :conditions, that the same duplication of records
  </summary>
  </entry>
  <entry>
  <author>
  <name>Andrew France</name>
  <email>andrew+li...@avito.co.uk</email>
  </author>
  <updated>2009-05-23T08:35:26Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/36be042790252640/ea742831a8f85021?show_docid=ea742831a8f85021</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/36be042790252640/ea742831a8f85021?show_docid=ea742831a8f85021"/>
  <title type="text">Re: [ruport] acts_as_reportable: duplicate records returned when two models used with :include</title>
  <summary type="html" xml:space="preserve">
  I think the behaviour is correct because you are including &#39;events&#39; &lt;br&gt; twice via the HABTM :through. You would probably want a nested include: &lt;br&gt; {:events =&amp;gt; {:only =&amp;gt; :id}}}} &lt;br&gt; Acts As Reportable has no SQL knowledge it just walks the ActiveRecord &lt;br&gt; object graph so it doesn&#39;t know that the two separate associations go to
  </summary>
  </entry>
  <entry>
  <author>
  <name>gluis</name>
  <email>louisju...@gmail.com</email>
  </author>
  <updated>2009-05-23T00:03:42Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/18d9e30b7d7a7cf5/e2ead16910c6c7d1?show_docid=e2ead16910c6c7d1</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/18d9e30b7d7a7cf5/e2ead16910c6c7d1?show_docid=e2ead16910c6c7d1"/>
  <title type="text">Re: Noobie: error on require &#39;ruport&#39;</title>
  <summary type="html" xml:space="preserve">
  i don&#39;t see much of what you&#39;ve written--it looks like there&#39;s &lt;br&gt; supposed to be code here? &lt;br&gt; &lt;p&gt;but guessing from what appears in your post, it looks like what you &lt;br&gt; want is: &lt;br&gt; &lt;p&gt;Ruport::Controller if you&#39;re trying to use a model that inherits &lt;br&gt; Ruport&#39;s controller class. or, if you just want a report, you use
  </summary>
  </entry>
  <entry>
  <author>
  <name>gluis</name>
  <email>louisju...@gmail.com</email>
  </author>
  <updated>2009-05-22T23:53:18Z</updated>
  <id>http://groups.google.com/group/ruby-reports/browse_thread/thread/36be042790252640/73b50c0e34de11f1?show_docid=73b50c0e34de11f1</id>
  <link href="http://groups.google.com/group/ruby-reports/browse_thread/thread/36be042790252640/73b50c0e34de11f1?show_docid=73b50c0e34de11f1"/>
  <title type="text">acts_as_reportable: duplicate records returned when two models used with :include</title>
  <summary type="html" xml:space="preserve">
  hi all, &lt;br&gt; &lt;p&gt;i&#39;m getting some strangeness w/ acts_as_reportable. short question: is &lt;br&gt; there a way to ensure a query is only run once? see below for why i &lt;br&gt; ask: (btw, although this is a longish question, i only put in relevant &lt;br&gt; info) &lt;br&gt; &lt;p&gt;assume 3 models &lt;br&gt; Event, has_many :members, :through =&amp;gt; :registrations AND
  </summary>
  </entry>
</feed>
