<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SmartLogic Solutions Blog &#187; Glenn Gentzke</title>
	<atom:link href="http://blog.smartlogicsolutions.com/author/glenngentzke/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.smartlogicsolutions.com</link>
	<description>News and updates from the people at SmartLogic Solutions</description>
	<lastBuildDate>Tue, 30 Nov 2010 21:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Including external .rake files in your project&#8217;s Rakefile &#8212; keep your rake tasks organized!</title>
		<link>http://blog.smartlogicsolutions.com/2009/05/26/including-external-rake-files-in-your-projects-rakefile-keep-your-rake-tasks-organized/</link>
		<comments>http://blog.smartlogicsolutions.com/2009/05/26/including-external-rake-files-in-your-projects-rakefile-keep-your-rake-tasks-organized/#comments</comments>
		<pubDate>Tue, 26 May 2009 14:58:07 +0000</pubDate>
		<dc:creator>Glenn Gentzke</dc:creator>
				<category><![CDATA[Glenn Gentzke]]></category>
		<category><![CDATA[Rake]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rake task]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=649</guid>
		<description><![CDATA[Perhaps you have a non-Rails project (let&#8217;s say it&#8217;s in ruby and maybe some other languages, too) and you use Rake tasks to automate some of the dirty work. So you&#8217;ve got a bunch of methods that you wish to keep neatly sorted into .rake files in some dir&#8217;s (probably a sub folder of lib [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps you have a non-Rails project (let&#8217;s say it&#8217;s in ruby and maybe some other languages, too) and you use Rake tasks to automate some of the dirty work.  So you&#8217;ve got a bunch of methods that you wish to keep neatly sorted into .rake files in some dir&#8217;s (probably a sub folder of lib like lib/tasks) and a single Rakefile in your project&#8217;s root directory.  Including those external .rake files in your project&#8217;s Rakefile via <strong>require</strong> statements won&#8217;t work :</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'lib/some_rake_file'</span> <span style="color:#008000; font-style:italic;"># or require 'lib/some_rake_file.rake'</span></pre></div></div>

<p><em>=> rake aborted!<br />
no such file to load &#8212; /home/your_project/lib/some_rake_file</em></p>
<p>Rake assumes the &#8216;require&#8217;d files end in .rb, so it won&#8217;t find your .rake files.  You need to <strong>import</strong> rake files:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">import <span style="color:#996600;">'lib/some_rake_file'</span></pre></div></div>

<p>  This is fine for individual files, but I wanted to include all files that end in .rake in my tasks dir:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC00FF; font-weight:bold;">Dir</span>.<span style="color:#9900CC;">glob</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'tasks/*.rake'</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>r<span style="color:#006600; font-weight:bold;">|</span> import r <span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p>&#8230;and there you go.  While dead simple, this exemplifies an important distinction between require and import that I found to be poorly documented.  Keep your rake tasks organized and remember that Rake isn&#8217;t just for rails apps!</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2009/04/04/environmentalist-023-released-supports-rails-232/" rel="bookmark" class="crp_title">environmentalist 0.2.3 released &#8212; supports rails 2.3.2</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/06/15/automating-flex-compilation-using-ant/" rel="bookmark" class="crp_title">Automating Flex Compilation Using ANT</a></li><li><a href="http://blog.smartlogicsolutions.com/2009/04/26/integrity-ci-on-passenger-222-with-ruby-enterprise-edition-on-ubuntu-804/" rel="bookmark" class="crp_title">Integrity CI on Passenger 2.2.2 with Ruby Enterprise Edition on Ubuntu 8.04</a></li><li><a href="http://blog.smartlogicsolutions.com/2010/05/13/directory-conventions-for-rack-middleware-rubygems/" rel="bookmark" class="crp_title">Directory Conventions for Rack Middleware RubyGems</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/06/02/better-setup-for-environments-in-rails/" rel="bookmark" class="crp_title">Better setup for environments in Rails</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2009/05/26/including-external-rake-files-in-your-projects-rakefile-keep-your-rake-tasks-organized/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex 3: Styling Individual Tabs in a TabBar</title>
		<link>http://blog.smartlogicsolutions.com/2008/11/10/flex-3-styling-individual-tabs-in-a-tabbar/</link>
		<comments>http://blog.smartlogicsolutions.com/2008/11/10/flex-3-styling-individual-tabs-in-a-tabbar/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 15:36:54 +0000</pubDate>
		<dc:creator>Glenn Gentzke</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Glenn Gentzke]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[flex 2]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[tabBar]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=357</guid>
		<description><![CDATA[There are a few ways to style the tabs in a TabBar that are fairly well hidden. Here are a couple methods that hopefully save some time for those of you out there looking to apply advanced styles tabs in Flex. If you need to style the tabs uniformly, then you&#8217;ve got little work to [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few ways to style the tabs in a TabBar that are fairly well hidden.  Here are a couple methods that hopefully save some time for those of you out there looking to apply advanced styles tabs in Flex.</p>
<p>If you need to style the tabs uniformly, then you&#8217;ve got little work to do.  Just set the <strong>StyleName</strong> attribute on the TabBar itself and just define it in your stylesheet.</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TabBar</span> id=<span style="color: #ff0000;">&quot;tabBar&quot;</span> styleName=<span style="color: #ff0000;">&quot;myTabBarStyle&quot;</span>  <span style="color: #7400FF;">/&gt;</span></span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.myTabBarStyle</span> <span style="color: #00AA00;">&#123;</span>
	tabHeight<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">28</span><span style="color: #00AA00;">;</span>
	cornerRadius<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	horizontalGap<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	horizontalAlign<span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
	backgroundAlpha<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
	backgroundColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#357cc6</span><span style="color: #00AA00;">;</span>
	borderStyle<span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	borderThickness<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	dropShadowEnabled<span style="color: #00AA00;">:</span> false<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Now that&#8217;s all good and well when all your tabs look the same.  What if you want to apply styles to tabs individually?  Well, if you&#8217;ve got 3 tabs or less you can use some css selectors to reference the book ends specifically, and let the general style apply to the middle tab.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.myTabBarStyle<span style="color: #00AA00;">&#123;</span>
    ...
  tabStyleName<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;greenTab&quot;</span><span style="color: #00AA00;">;</span>
  firstTabStyleName<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;blueTab&quot;</span><span style="color: #00AA00;">;</span>
  lastTabStyleName<span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;yellowTab&quot;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.greenTab</span> <span style="color: #00AA00;">&#123;</span>
  fillColors<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#a5d414</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#87c408</span><span style="color: #00AA00;">;</span>
  backgroundColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#87c408</span><span style="color: #00AA00;">;</span>
   borderColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#87c408</span><span style="color: #00AA00;">;</span>
  themeColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#a5d414</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.blueTab</span> <span style="color: #00AA00;">&#123;</span>
  fillColors<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#5a9cd6</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#357cc6</span><span style="color: #00AA00;">;</span>
  backgroundColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#357cc6</span><span style="color: #00AA00;">;</span>
  borderColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#357cc6</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
  textRollOverColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
  themeColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#5a9cd6</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.yellowTab</span> <span style="color: #00AA00;">&#123;</span>
  fillColors<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
  backgroundColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
  borderColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#646464</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#F8ED6D</span><span style="color: #00AA00;">;</span>
  textRollOverColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#F8ED6D</span><span style="color: #00AA00;">;</span>
  themeColor<span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#646464</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>When you have 4 or more tags, you need to set their styles by getting a reference to the tab <em>itself</em> and call the <strong>setStyle()</strong> method.  Straight forward? Yes. Easy to find information about? No&#8230; in fact I ran into trouble because there wasn&#8217;t any documentation available for an individual tab&#8217;s class and FlexBuilder 3 has no source code for the mx.controls.tabBarClasses package.</p>
<p>Import the Tab code, get a reference to the tab you wish to style, and call setStyle() for each attribute you want to change. Let&#8217;s say you have 4 tabs and each has a different style.  You can combine all 3 methods of styling by using the css code above to set the tab style for all tabs in the tabBar, override styles for the first and last tabs, then specifically grab the 3rd tab and override its style in the component:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">  <span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
	<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">tabBarClasses</span>.<span style="color: #0066CC;">Tab</span>
&nbsp;
       <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> tabBarCreationComplete<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
	  <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">tab</span>:<span style="color: #0066CC;">Tab</span> = tabBar.<span style="color: #006600;">getChildAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span> as <span style="color: #0066CC;">Tab</span>;			  
	  <span style="color: #0066CC;">tab</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;fillColors&quot;</span>, <span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;#edb000&quot;</span>, <span style="color: #ff0000;">&quot;#e69500&quot;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
          <span style="color: #0066CC;">tab</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;backgroundColor&quot;</span>, <span style="color: #ff0000;">&quot;#e69500&quot;</span><span style="color: #66cc66;">&#41;</span>;
          <span style="color: #0066CC;">tab</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;borderColor&quot;</span>, <span style="color: #ff0000;">&quot;#e69500&quot;</span><span style="color: #66cc66;">&#41;</span>;
          <span style="color: #0066CC;">tab</span>.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;themeColor&quot;</span>, <span style="color: #ff0000;">&quot;#edb000&quot;</span><span style="color: #66cc66;">&#41;</span>;
       <span style="color: #66cc66;">&#125;</span>
    <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
  <span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p>And update the TabBar control:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;">  <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TabBar</span> id=<span style="color: #ff0000;">&quot;tabBar&quot;</span> </span>
<span style="color: #000000;">                     styleName=<span style="color: #ff0000;">&quot;myTabBarStyle&quot;</span></span>
<span style="color: #000000;">                     creationComplete=<span style="color: #ff0000;">&quot;tabBarCreationComplete();&quot;</span>  <span style="color: #7400FF;">/&gt;</span></span></pre></div></div>

<p>You can iterate through each tab in the TabBar and set each tab individually if desired.  I hope this helps some Flex developers out there who are confused by styling many tabs individually!</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2010/01/22/ubuntu-byobu-landscape/" rel="bookmark" class="crp_title">Using Byobu and Landscape to improve remote Ubuntu sessions</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/07/16/skinning-button-flex-4-fxg/" rel="bookmark" class="crp_title">Skinning A Button in Flex 4 Using FXG</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/10/21/advanced-css-in-flex-4-id-and-descendant-selectors/" rel="bookmark" class="crp_title">Advanced CSS in Flex 4 &#8211; ID and Descendant Selectors</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/07/19/creating-custom-flex-4-skinnable-component/" rel="bookmark" class="crp_title">Creating Your First Custom SkinnableComponent in Flex 4</a></li><li><a href="http://blog.smartlogicsolutions.com/2007/06/06/eclipse-32-and-out-of-memory-errors/" rel="bookmark" class="crp_title">Eclipse 3.2 and &#8220;Out Of Memory&#8221; errors</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2008/11/10/flex-3-styling-individual-tabs-in-a-tabbar/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using ActiveRecord&#8217;s to_xml to produce custom xml including deep level associations</title>
		<link>http://blog.smartlogicsolutions.com/2008/09/10/using-activerecords-to_xml-to-produce-custom-xml-including-deep-level-associations/</link>
		<comments>http://blog.smartlogicsolutions.com/2008/09/10/using-activerecords-to_xml-to-produce-custom-xml-including-deep-level-associations/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 18:49:34 +0000</pubDate>
		<dc:creator>Glenn Gentzke</dc:creator>
				<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[Glenn Gentzke]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[deep level associations]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[to_xml]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=237</guid>
		<description><![CDATA[ActiveRecord provides a powerful method to all its records called to_xml. Most web developers using RoR should be familiar with its usage and hopefully use it for their simple xml production needs. But what do you do when you need to produce xml that is selective, includes associations, or contains custom tags? There are many [...]]]></description>
			<content:encoded><![CDATA[<p>ActiveRecord provides a powerful method to all its records called <strong>to_xml</strong>.  Most web developers using RoR should be familiar with its usage and hopefully use it for their simple xml production needs.  But what do you do when you need to produce xml that is selective, includes associations, or contains custom tags?  There are many ways to manipulate to_xml&#8217;s output and I&#8217;ll explain a few below.<br />
<span id="more-237"></span></p>
<h3>The Options Hash</h3>
<p>The most obvious way to change the output is to use the options hash <a href="http://api.rubyonrails.org/classes/ActiveRecord/XmlSerialization.html">outlined in the docs</a>.  A short list of options you might want to explore is:</p>
<ul>
<li>except => [:attr1, :attr2] &#8212; excludes attributes in array from output</li>
<li>only => [:attr1, :attr2] &#8212; output contains only the specified attributes</li>
<li>include	 => [:assoc1, :assoc2] &#8212; calls to_xml on the given first level association and nests it in the output</li>
<li>methods => [:meth1, :meth2] &#8212; adds a tag to output in the format <em>&lt;method-name&gt;[method output]&lt;/method-name&gt;</em></li>
</ul>
<p>Usage is incredibly simple:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">  <span style="color:#008000; font-style:italic;"># grab xml for a record and its child</span>
  my_record.<span style="color:#9900CC;">to_xml</span><span style="color:#006600; font-weight:bold;">&#40;</span>:<span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:child</span><span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
  <span style="color:#008000; font-style:italic;"># same, but only output the ids and names (assuming both have these attributes)</span>
  my_record.<span style="color:#9900CC;">to_xml</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:only</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:id</span>, <span style="color:#ff3333; font-weight:bold;">:name</span><span style="color:#006600; font-weight:bold;">&#93;</span>, :<span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:child</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

<h3>Behold, the Builder</h3>
<p>A fantastic feature of to_xml that <a href="http://ryandaigle.com/articles/2007/4/13/what-s-new-in-edge-rails-a-more-flexible-to_xml">Ryan blogged about last year</a> is that it yields the builder, thus allowing you to add arbitrary tags into the output.  What&#8217;s more is you can pass the builder into another object&#8217;s to_xml method inside the outer block and produced nested xml.</p>
<p>For example:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">  <span style="color:#008000; font-style:italic;"># Arbitrarily insert a tag</span>
  my_record.<span style="color:#9900CC;">to_xml</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>xml<span style="color:#006600; font-weight:bold;">|</span>
    xml.<span style="color:#9900CC;">some_tag</span> some_value   <span style="color:#008000; font-style:italic;">#=&gt; &lt;some_tag&gt;some_value&lt;/some_tag&gt;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#008000; font-style:italic;"># I want to get xml for my record and all its children</span>
  my_record.<span style="color:#9900CC;">to_xml</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>xml<span style="color:#006600; font-weight:bold;">|</span>
    my_record.<span style="color:#9900CC;">children</span>.<span style="color:#9900CC;">each</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">|</span>child<span style="color:#006600; font-weight:bold;">|</span> child.<span style="color:#9900CC;">to_xml</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:builder</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> xml, <span style="color:#ff3333; font-weight:bold;">:skip_instruct</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#125;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>You can nest as deep as you want without overriding a model&#8217;s own to_xml method:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">  output = my_record.<span style="color:#9900CC;">to_xml</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>xml<span style="color:#006600; font-weight:bold;">|</span>
    my_record.<span style="color:#9900CC;">children</span>.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>child<span style="color:#006600; font-weight:bold;">|</span>
      child.<span style="color:#9900CC;">to_xml</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:builder</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> xml, <span style="color:#ff3333; font-weight:bold;">:skip_instruct</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>fxml<span style="color:#006600; font-weight:bold;">|</span>
        child.<span style="color:#9900CC;">grandchild</span>.<span style="color:#9900CC;">to_xml</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:builder</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> fxml, <span style="color:#ff3333; font-weight:bold;">:skip_instruct</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<h3>deep_xml: Model methods that utilize (but do not overwrite) to_xml</h3>
<p>I chose to write methods in the models that handled including the children&#8217;s xml such that a single call to my_record.full_xml would produce nested xml automatically.  Notice how the builder is being passed to the children, it&#8217;s important!</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">  <span style="color:#9966CC; font-weight:bold;">class</span> ParentClass <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActiveRecord::Base</span>
    has_many <span style="color:#ff3333; font-weight:bold;">:children</span>
&nbsp;
    <span style="color:#9966CC; font-weight:bold;">def</span> deep_xml<span style="color:#006600; font-weight:bold;">&#40;</span>builder=<span style="color:#0000FF; font-weight:bold;">nil</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      to_xml<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:builder</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> builder<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>xml<span style="color:#006600; font-weight:bold;">|</span>
        children.<span style="color:#9900CC;">each</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">|</span>child<span style="color:#006600; font-weight:bold;">|</span> child.<span style="color:#9900CC;">deep_xml</span><span style="color:#006600; font-weight:bold;">&#40;</span>xml<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#125;</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">class</span> Child <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActiveRecord::Base</span>
    belongs_to <span style="color:#ff3333; font-weight:bold;">:parent</span>
    has_one <span style="color:#ff3333; font-weight:bold;">:grandchild</span>
&nbsp;
    <span style="color:#9966CC; font-weight:bold;">def</span> deep_xml<span style="color:#006600; font-weight:bold;">&#40;</span>builder=<span style="color:#0000FF; font-weight:bold;">nil</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      to_xml<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:builder</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> builder, <span style="color:#ff3333; font-weight:bold;">:skip_instruct</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>xml<span style="color:#006600; font-weight:bold;">|</span>
        grandchild.<span style="color:#9900CC;">to_xml</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:builder</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> xml, <span style="color:#ff3333; font-weight:bold;">:skip_instruct</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">class</span> Grandchild <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActiveRecord::Base</span>
    belongs_to <span style="color:#ff3333; font-weight:bold;">:child</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># Now the call is simple:</span>
Parent.<span style="color:#9900CC;">firstdeep_xml</span> <span style="color:#008000; font-style:italic;">#=&gt; custom xml for a parent that includes its </span>
                        <span style="color:#008000; font-style:italic;">#   children and their grandchildren (1 each in this case)</span></pre></div></div>

<p>There&#8217;s not much to it, but I found this solution to be nice shorthand that cleaned up ugly nested to_xml blocks I was writing over and over.  I call my_record.deep_xml from any layer of the family tree and return a nice drill down of data to the leaf children.  It&#8217;s great if you&#8217;re working with a complicated database and need to be able to present your data in xml.</p>
<h3>If you are so inclined&#8230;</h3>
<p>If you really need to, you can just overwrite the to_xml method in the model.  While fine to do if you know you&#8217;ll always want that one specific template, I avoid it as much as possible and won&#8217;t cover it since examples are all over the blogosphere.  Why not just make a separate function to avoid producing unexpected results for someone else who joins your project later on?</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2008/10/10/making-willpaginate-and-rails-to_xml-play-nice-with-activeresource/" rel="bookmark" class="crp_title">Making WillPaginate and Rails to_xml play nice with ActiveResource</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/06/11/multithreading-in-ruby-on-rails/" rel="bookmark" class="crp_title">Multithreading in Ruby on Rails</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/10/28/faking-a-will-paginate-collection-on-an-active-resource-model/" rel="bookmark" class="crp_title">Faking a Will Paginate Collection on an Active Resource model</a></li><li><a href="http://blog.smartlogicsolutions.com/2009/02/24/rails-23-nested-object-forms-im-not-crazy-about-them/" rel="bookmark" class="crp_title">Rails 2.3 Nested Object Forms: I&#8217;m not Crazy about Them</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/07/10/merging-a-has_many-relationship-into-one-instance/" rel="bookmark" class="crp_title">Merging a :has_many relationship into one instance</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2008/09/10/using-activerecords-to_xml-to-produce-custom-xml-including-deep-level-associations/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Loosely defined link_to may cause problems when overriding url_helper</title>
		<link>http://blog.smartlogicsolutions.com/2008/08/26/loosely-defined-link_to-may-cause-problems-when-overriding-url_helper/</link>
		<comments>http://blog.smartlogicsolutions.com/2008/08/26/loosely-defined-link_to-may-cause-problems-when-overriding-url_helper/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 21:27:22 +0000</pubDate>
		<dc:creator>Glenn Gentzke</dc:creator>
				<category><![CDATA[Glenn Gentzke]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[argumenterror]]></category>
		<category><![CDATA[default_url_options]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[link_to]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[skip_relative_url_root]]></category>
		<category><![CDATA[url_for]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/?p=193</guid>
		<description><![CDATA[Abusing the rails url_helpers through lazy coding may create problems when overriding the url_helper.]]></description>
			<content:encoded><![CDATA[<p><strong>OR &#8220;Beware of pick pockets and loose link_to&#8217;s&#8221;</strong></p>
<p>I hope most rails dev&#8217;s out there take advantage of RESTful routes and the url-generating helpers so readily available these days and actually <em>enjoy</em> them.  But for some of you who are lucky enough to inherit a legacy app (you know, 1 year olds) or for whatever reason encounter loosely defined link_to&#8217;s [exemplified below], you can easily update the code to avoid some gotchas.</p>
<p>This is what I consider a loosely defined link_to:</p>
<p><code>link_to 'Destroy', <strong>some_record</strong>, :confirm => 'Are you sure?', :method => :delete</code></p>
<p>It lacks parentheses, option grouping, and most importantly, expects the helpers to generate a specific kind of link (in this case a destroy action) from <strong>just the record itself</strong>.  Now, rails is pretty smart these days and will probably generate the correct link without a hiccup if your app isn&#8217;t employing a custom <strong>RAILS_RELATIVE_URL_ROOT</strong>, or setting <strong>skip_relative_url_root => false</strong>.</p>
<p>Well, my latest app is.  And this is how that loosely defined link_to renders:</p>
<blockquote><p><strong>ArgumentError in Controller#action</strong><br />
wrong number of arguments (0 for 1)</p></blockquote>
<p>The stack trace will provide evidence that some thing&#8217;s a mess in url_for related to the default_url_options, defined in application.rb (or elsewhere).  Rails&#8217; helpers cannot correctly produce a url due to lazy linking.</p>
<p>So, make your code more readable and keep the helpers happy and define your link_to&#8217;s like this:</p>
<p><code>link_to ( 'Destroy', <strong>record_path(some_record)</strong>, :confirm => 'Are you sure?', :method => :delete )</code></p>
<p>Refresh that error page and voila! Happy links again!  Stricter coders may even group the options with curlies, and that doesn&#8217;t hurt either.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2009/06/04/mount-options-to-improve-ext4-file-system-performance/" rel="bookmark" class="crp_title">Mount options to improve ext4 file system performance</a></li><li><a href="http://blog.smartlogicsolutions.com/2007/06/12/struts-11-problems-with-logiciterate-tags-and-cannot-find-bean-xxx-under-any-scope/" rel="bookmark" class="crp_title">Struts 1.1: Problems with logic:iterate tags and &#8220;Cannot find bean XXX under any scope&#8221;</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/07/07/i-cant-upgrade-rubygems-from-111-to-120-on-ubuntu/" rel="bookmark" class="crp_title">I can&#8217;t upgrade RubyGems from 1.1.1 to 1.2.0 on Ubuntu</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/06/13/ruby-on-rails-polymorphic-association-benchmarks/" rel="bookmark" class="crp_title">Ruby on Rails Polymorphic Association Benchmarks</a></li><li><a href="http://blog.smartlogicsolutions.com/2009/09/20/timecop-0-3-0-released/" rel="bookmark" class="crp_title">Timecop 0.3.0 Released</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2008/08/26/loosely-defined-link_to-may-cause-problems-when-overriding-url_helper/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sexier Migrations in Rails 2.1</title>
		<link>http://blog.smartlogicsolutions.com/2008/06/05/sexier-migrations-in-rails-21/</link>
		<comments>http://blog.smartlogicsolutions.com/2008/06/05/sexier-migrations-in-rails-21/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 16:09:00 +0000</pubDate>
		<dc:creator>Glenn Gentzke</dc:creator>
				<category><![CDATA[Glenn Gentzke]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/2008/06/05/sexier-migrations-in-rails-21/</guid>
		<description><![CDATA[If you thought migrations couldn&#8217;t get any sexier, then clearly you haven&#8217;t been following the mudslide of updates going on in Rails this year. As of late I&#8217;ve been updating tables in almost every way possible in several applications. From simply renaming columns to renaming entire tables and their dozens of loyal has_many&#8217;s, I&#8217;ve gotten [...]]]></description>
			<content:encoded><![CDATA[<p>If you thought migrations couldn&#8217;t get any sexier, then clearly you haven&#8217;t been following the mudslide of updates going on in Rails this year.  As of late I&#8217;ve been updating tables in almost every way possible in several applications.  From simply renaming columns to renaming entire tables and their dozens of loyal has_many&#8217;s, I&#8217;ve gotten used to the old way to change tables, but I certainly haven&#8217;t enjoyed it.  Behold, migrations in 2.1 now allow you to do this:</p>
<p><img src="http://glenn.gentzke.googlepages.com/rails21migrations.png" alt="screenshot shamelessly stolen from railscast" /></p>
<p>I am definitely excited about that change and look forward to updating tables with the utmost ease.  Along with this great update, migrations are now automatically generated with a timestamp as their version number instead of simply an integer.  What this means to the solo developer is more information given at a glance than just the migration order (not <em>too</em> useful).  What it means as a team developer is little to no worries of colliding migration versions with others on your team.  Additionally, a schema_migrations table is created in your database which tells you what migrations have been run so far, which is more useful than the schema_info table which is just the latest migration version.  Those of you who hate reconciling migrations with other developers rejoice.</p>
<p>For more on these updates, <a href="http://railscasts.com/episodes/107">click on over to Railscasts</a>, since I shamelessly stole an image of their screencast anyway.</p>
<p>What might go wrong when you update your own app, you might wonder? </p>
<p>In most cases there are no complications, unless you already have a migration up to version 20080605122345 [YMMV on the timestamp].  This is NOT ok if you&#8217;re setting the time and date of &#8220;right now&#8221; in the application.  For example, the date of present time is set to midnight, May 15th, 2007 in an app I&#8217;m currently working on for development and testing purposes.  This means my new migrations (ALL of them) are given the same version of 20070515000000_&#8230;. and this is bad news.  I am hunting around for a way to tell the generator to use simple version numbers instead and I will report back when said way is found.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2008/06/24/rails-21-broke-my-mysql-foreign-keys/" rel="bookmark" class="crp_title">Rails 2.1 broke my mysql foreign keys!</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/12/24/timecop-2-released-freeze-and-rebase-time-ruby/" rel="bookmark" class="crp_title">Timecop 0.2.0 Released: Freeze and Rebase Time in Ruby</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/11/17/migrairable-library-added-to-google-code/" rel="bookmark" class="crp_title">MigrAIRable Library Added to Google Code</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/06/13/ruby-on-rails-polymorphic-association-benchmarks/" rel="bookmark" class="crp_title">Ruby on Rails Polymorphic Association Benchmarks</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/07/07/i-cant-upgrade-rubygems-from-111-to-120-on-ubuntu/" rel="bookmark" class="crp_title">I can&#8217;t upgrade RubyGems from 1.1.1 to 1.2.0 on Ubuntu</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2008/06/05/sexier-migrations-in-rails-21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error in will_paginate gem running Rails 2.1.0</title>
		<link>http://blog.smartlogicsolutions.com/2008/06/03/error-in-will_paginate-gem-running-rails-210/</link>
		<comments>http://blog.smartlogicsolutions.com/2008/06/03/error-in-will_paginate-gem-running-rails-210/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 18:58:42 +0000</pubDate>
		<dc:creator>Glenn Gentzke</dc:creator>
				<category><![CDATA[Glenn Gentzke]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.smartlogicsolutions.com/2008/06/03/error-in-will_paginate-gem-running-rails-210/</guid>
		<description><![CDATA[I encountered some unexpected errors immediately after upgrading to Rails 2.1.0 from 2.0.2. To replicate the problem: Choose a model that has_many :things, :through =&#62; :something_else, and also uses the will_paginate gem somewhere open up your console Model.find(:first).things #=&#62; all your things Model.find(:first).things.collect(&#38;:id) #=&#62; SystemStackError: stack level too deep from /usr/lib/ruby/gems/1.8/gems/will_paginate-2.1.0/lib/will_paginate/finder.rb:139:in `method_missing_without_paginate&#8217; from /usr/lib/ruby/gems/1.8/gems/will_paginate-2.1.0/lib/will_paginate/finder.rb:139:in `method_missing&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p>I encountered some unexpected errors immediately after upgrading to Rails 2.1.0 from 2.0.2.  To replicate the problem:</p>
<ol>
<li>Choose a model that has_many :things, :through =&gt; :something_else, and also uses the will_paginate gem somewhere</li>
<li>open up your console</li>
<li>Model.find(:first).things #=&gt; all your things</li>
<li>Model.find(:first).things.collect(&amp;:id) </li>
</ol>
<p>#=&gt; SystemStackError: stack level too deep<br />
        from /usr/lib/ruby/gems/1.8/gems/will_paginate-2.1.0/lib/will_paginate/finder.rb:139:in `method_missing_without_paginate&#8217;<br />
        from /usr/lib/ruby/gems/1.8/gems/will_paginate-2.1.0/lib/will_paginate/finder.rb:139:in `method_missing&#8217;<br />
        from (irb):3</p>
<p>This problem was referenced <a href="http://err.lighthouseapp.com/projects/466/tickets/220-has-many-through-causes-stack-level-too-deep-error"> in this post </a> and the solution is contained therein.</p>
<p>I uninstalled the will_paginate gem and installed the <a href="http://gems.github.com">&#8220;mislav-will_paginate&#8221; gem from http://gems.github.com</a>.<br />
To install it yourself just use:<br />
<code><br />
sudo gem uninstall will_paginate<br />
sudo gem install mislav-will_paginate<br />
        --source=http://gems.github.com<br />
</code></p>
<p>Go back into your console and try it out, then make sure you restart your server for the changes to make it to your app.</p>
<p>Hopefully this helps some of you who are jumping on the latest rails releases, especially after RailsConf just got everyone excited.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.smartlogicsolutions.com/2008/10/10/making-willpaginate-and-rails-to_xml-play-nice-with-activeresource/" rel="bookmark" class="crp_title">Making WillPaginate and Rails to_xml play nice with ActiveResource</a></li><li><a href="http://blog.smartlogicsolutions.com/2009/02/13/aasm-interning-empty-string-error/" rel="bookmark" class="crp_title">AASM + interning empty string error</a></li><li><a href="http://blog.smartlogicsolutions.com/2008/10/28/faking-a-will-paginate-collection-on-an-active-resource-model/" rel="bookmark" class="crp_title">Faking a Will Paginate Collection on an Active Resource model</a></li><li><a href="http://blog.smartlogicsolutions.com/2010/05/13/directory-conventions-for-rack-middleware-rubygems/" rel="bookmark" class="crp_title">Directory Conventions for Rack Middleware RubyGems</a></li><li><a href="http://blog.smartlogicsolutions.com/2009/04/26/integrity-ci-on-passenger-222-with-ruby-enterprise-edition-on-ubuntu-804/" rel="bookmark" class="crp_title">Integrity CI on Passenger 2.2.2 with Ruby Enterprise Edition on Ubuntu 8.04</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://blog.smartlogicsolutions.com/2008/06/03/error-in-will_paginate-gem-running-rails-210/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

