<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Kellogg Associates comments</title>
    <link>http://kellogg-assoc.com/articles</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>"Eager Finder SQL" by Gregg Kellogg</title>
      <description>&lt;p&gt;(Summary of email communications with Romaluca)&lt;/p&gt;


	&lt;p&gt;Instead of adding :limit and :offset options to the find call, add them into the embedded SQL as follows:&lt;/p&gt;


	&lt;p&gt;SELECT a.&lt;strong&gt;, b.&lt;/strong&gt;
  FROM (SELECT * FROM aa LIMIT #{params[:offset]}, #{params[:length]}) a
  JOIN bb ON bb.a_id = a.id
 ORDER &amp;#8230;&lt;/p&gt;


	&lt;p&gt;In this case, we&amp;#8217;re putting the limits on an inner select, which allows us to have an unlimited number of associations off a limited and offset set of base objects (aa in this case).&lt;/p&gt;


	&lt;p&gt;Gregg&lt;/p&gt;</description>
      <pubDate>Sat, 15 Dec 2007 22:58:16 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:4705621c-8966-4cb9-a307-fc3965a7d901</guid>
      <link>http://kellogg-assoc.com/articles/2006/11/05/eager-finder-sql#comment-47</link>
    </item>
    <item>
      <title>"Eager Finder SQL" by Romaluca</title>
      <description>&lt;p&gt;how can i use limit for paginate the result?&lt;/p&gt;</description>
      <pubDate>Mon, 10 Dec 2007 07:01:20 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:02139fd5-8c43-4adc-aff2-7902947b69e8</guid>
      <link>http://kellogg-assoc.com/articles/2006/11/05/eager-finder-sql#comment-46</link>
    </item>
    <item>
      <title>"Eager Finder SQL" by infrid</title>
      <description>&lt;p&gt;Bloody marvelous! Just got my first finder_sql, with include going &amp;#8211; and I&amp;#8217;m giddy inside!&lt;/p&gt;


	&lt;p&gt;Thanks so much, saved me hours and hours, I swear!&lt;/p&gt;</description>
      <pubDate>Thu, 14 Jun 2007 10:33:23 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:9b052a04-08f7-4339-9d15-8d90fd96787f</guid>
      <link>http://kellogg-assoc.com/articles/2006/11/05/eager-finder-sql#comment-33</link>
    </item>
    <item>
      <title>"Button Labels" by Gregg Kellogg</title>
      <description>&lt;p&gt;It would be a simple extension to add this to other methods, such as input and select. However, the primary motivation for doing this for radio buttons and checklists is that they are are implemented using the tag() rather than content_tag() method (my change makes them content_tag if a label is specified). Given that select is based on content_tag, a the label can simply be added as part of the content. The input tag, however, is based on tag, and so could benefit from supporting a :label option. I just haven&amp;#8217;t found it necessary when creating forms.&lt;/p&gt;</description>
      <pubDate>Wed, 25 Apr 2007 16:36:41 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:f1c76eda-9853-4176-8659-d07ccce4e145</guid>
      <link>http://kellogg-assoc.com/articles/2006/10/23/button-labels#comment-28</link>
    </item>
    <item>
      <title>"Eager Finder SQL" by dob</title>
      <description>&lt;p&gt;This plugin looks awesome. This is the one feature of Hibernate that I&amp;#8217;ve found lacking in ActiveRecord. +1 from me for inclusion in the base, for what it&amp;#8217;s worth.&lt;/p&gt;</description>
      <pubDate>Tue, 17 Apr 2007 17:03:11 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:f6a48c28-c93d-46f6-b893-c9f52dba67cb</guid>
      <link>http://kellogg-assoc.com/articles/2006/11/05/eager-finder-sql#comment-25</link>
    </item>
    <item>
      <title>"Button Labels" by Jatinder Singh</title>
      <description>&lt;p&gt;Beautiful plugin. thanks!
one question: why did you not consider doing(labelling) similarly for input/select fields?&lt;/p&gt;</description>
      <pubDate>Fri, 06 Apr 2007 16:17:58 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d22887d2-be8d-4232-9418-9c146a9719dd</guid>
      <link>http://kellogg-assoc.com/articles/2006/10/23/button-labels#comment-24</link>
    </item>
    <item>
      <title>"Eager Finder SQL" by Gregg Kellogg</title>
      <description>&lt;p&gt;Updated Rdoc from new release.&lt;/p&gt;</description>
      <pubDate>Wed, 14 Mar 2007 17:41:42 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:0c6f689b-2358-44b7-a4f9-7f2bf8b3c49c</guid>
      <link>http://kellogg-assoc.com/articles/2006/11/05/eager-finder-sql#comment-22</link>
    </item>
    <item>
      <title>"Button Labels" by Gregg Kellogg</title>
      <description>&lt;p&gt;Updated package to support labels for Check Boxes as well as Radio Buttons.&lt;/p&gt;</description>
      <pubDate>Wed, 21 Feb 2007 20:08:50 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:58130582-6fe5-4fc5-87fc-be1992fd87e7</guid>
      <link>http://kellogg-assoc.com/articles/2006/10/23/button-labels#comment-21</link>
    </item>
  </channel>
</rss>
