<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Zebra-striped tables using Rails</title>
	<atom:link href="http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/</link>
	<description>Affiliate marketing, Internet marketing, web development, and small business ideas.</description>
	<lastBuildDate>Fri, 28 May 2010 16:40:30 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: kirkh</title>
		<link>http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/comment-page-1/#comment-75208</link>
		<dc:creator>kirkh</dc:creator>
		<pubDate>Fri, 24 Apr 2009 00:59:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/#comment-75208</guid>
		<description>strike my last comment.  This works, but if you use reset_cycle it will never progress to the next item in the array.  reset_cycle starts the cycle from the array[0] position (odd...  odd... odd...)</description>
		<content:encoded><![CDATA[<p>strike my last comment.  This works, but if you use reset_cycle it will never progress to the next item in the array.  reset_cycle starts the cycle from the array[0] position (odd&#8230;  odd&#8230; odd&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kirkh</title>
		<link>http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/comment-page-1/#comment-75207</link>
		<dc:creator>kirkh</dc:creator>
		<pubDate>Fri, 24 Apr 2009 00:48:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/#comment-75207</guid>
		<description>this is very outdated...  it doesn&#039;t seem to work in rails 2.2+.  I can&#039;t find it in the official API anywhere!</description>
		<content:encoded><![CDATA[<p>this is very outdated&#8230;  it doesn&#8217;t seem to work in rails 2.2+.  I can&#8217;t find it in the official API anywhere!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Beaird</title>
		<link>http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/comment-page-1/#comment-228</link>
		<dc:creator>Jason Beaird</dc:creator>
		<pubDate>Fri, 02 Jun 2006 14:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/#comment-228</guid>
		<description>I too had a nasty (although somewhat compact) solution to this problem, but the cycle helper wins hands down.  Thanks for the tip.  I really like the fact that you can give it a name: 
&lt;%= cycle(&quot;odd&quot;, &quot;even&quot;, :name =&gt; &quot;zebra&quot;)%&gt;
then reset just that cycle
&lt;% reset_cycle(&quot;zebra&quot;) -%&gt;
As far as the whole server or client side argument goes, I think it depends on the project.  I&#039;ve used js solutions before, but really, the rails text helpers were meant to be used in your views.</description>
		<content:encoded><![CDATA[<p>I too had a nasty (although somewhat compact) solution to this problem, but the cycle helper wins hands down.  Thanks for the tip.  I really like the fact that you can give it a name:<br />
&lt;%= cycle(&#8221;odd&#8221;, &#8220;even&#8221;, :name =&gt; &#8220;zebra&#8221;)%&gt;<br />
then reset just that cycle<br />
&lt;% reset_cycle(&#8221;zebra&#8221;) -%&gt;<br />
As far as the whole server or client side argument goes, I think it depends on the project.  I&#8217;ve used js solutions before, but really, the rails text helpers were meant to be used in your views.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart</title>
		<link>http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/comment-page-1/#comment-55</link>
		<dc:creator>Bart</dc:creator>
		<pubDate>Thu, 09 Feb 2006 00:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/#comment-55</guid>
		<description>I like the ALA approach, which is client side, and I find it&#039;s much easier to read and code. 

Add a  and  to your layout template and a  tag to your table and the javascript handles the rest. It really cleans up the code if you have a lot of table rows. 

Details here:
http://www.alistapart.com/articles/zebratables/

This doesn&#039;t work so well though if you have more than one table you want to stripe per page.</description>
		<content:encoded><![CDATA[<p>I like the ALA approach, which is client side, and I find it&#8217;s much easier to read and code. </p>
<p>Add a  and  to your layout template and a  tag to your table and the javascript handles the rest. It really cleans up the code if you have a lot of table rows. </p>
<p>Details here:<br />
<a href="http://www.alistapart.com/articles/zebratables/" rel="nofollow">http://www.alistapart.com/articles/zebratables/</a></p>
<p>This doesn&#8217;t work so well though if you have more than one table you want to stripe per page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mithras the Prophet</title>
		<link>http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/comment-page-1/#comment-51</link>
		<dc:creator>Mithras the Prophet</dc:creator>
		<pubDate>Sat, 04 Feb 2006 19:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/#comment-51</guid>
		<description>nice. though shouldn&#039;t that be cycle(&quot;odd&quot;,&quot;even&quot;) ??</description>
		<content:encoded><![CDATA[<p>nice. though shouldn&#8217;t that be cycle(&#8221;odd&#8221;,&#8221;even&#8221;) ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenneth</title>
		<link>http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/comment-page-1/#comment-39</link>
		<dc:creator>Kenneth</dc:creator>
		<pubDate>Wed, 21 Dec 2005 17:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.roryhansen.ca/2005/11/30/zebra-striped-tables-using-rails/#comment-39</guid>
		<description>thanks a lot for this little tip. so much easier than anything else i&#039;ve seen.</description>
		<content:encoded><![CDATA[<p>thanks a lot for this little tip. so much easier than anything else i&#8217;ve seen.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
