<?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: Simple Pagination with Rails</title>
	<atom:link href="http://www.thewojogroup.com/2009/05/simple-pagination-with-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thewojogroup.com/2009/05/simple-pagination-with-rails/</link>
	<description>The musings of a small creative media company.</description>
	<lastBuildDate>Fri, 10 Sep 2010 22:54:04 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Barbara16</title>
		<link>http://www.thewojogroup.com/2009/05/simple-pagination-with-rails/#comment-7717</link>
		<dc:creator>Barbara16</dc:creator>
		<pubDate>Thu, 22 Oct 2009 21:04:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=510#comment-7717</guid>
		<description>It&#039;s obviously really expensive, but if you get funding, it&#039;s a great place. ,</description>
		<content:encoded><![CDATA[<p>It&#8217;s obviously really expensive, but if you get funding, it&#8217;s a great place. ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mf</title>
		<link>http://www.thewojogroup.com/2009/05/simple-pagination-with-rails/#comment-5700</link>
		<dc:creator>mf</dc:creator>
		<pubDate>Thu, 13 Aug 2009 18:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=510#comment-5700</guid>
		<description>I needed a simple solution to paginage an array of results returned from an xml feed. This solution worked perfectly w/out needing to use any plugin, etc., in my rail app. Nice job!</description>
		<content:encoded><![CDATA[<p>I needed a simple solution to paginage an array of results returned from an xml feed. This solution worked perfectly w/out needing to use any plugin, etc., in my rail app. Nice job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srivatsav</title>
		<link>http://www.thewojogroup.com/2009/05/simple-pagination-with-rails/#comment-3215</link>
		<dc:creator>srivatsav</dc:creator>
		<pubDate>Tue, 19 May 2009 08:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=510#comment-3215</guid>
		<description>I am using will_paginate but i could not remove the page numbers. I do not want the page numbers. how to do that?</description>
		<content:encoded><![CDATA[<p>I am using will_paginate but i could not remove the page numbers. I do not want the page numbers. how to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gk</title>
		<link>http://www.thewojogroup.com/2009/05/simple-pagination-with-rails/#comment-2910</link>
		<dc:creator>gk</dc:creator>
		<pubDate>Fri, 08 May 2009 16:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=510#comment-2910</guid>
		<description>I&#039;m sorry to say this, but this is not exactly a good example for pagination or ruby programming in general. If you really want to roll your own solution, you should at least try to keep your views clean and simple and move this conditional code into a helper.

But why don&#039;t you use what&#039;s already there? will_paginate is a nice and simple solution for pagination. In your controller, you could write &#039;@page = @videos.paginate :per_page =&gt; 10, :page =&gt; params[:page]&#039; 

In your view, use the pagination_helper like this:
&#039;&#039; This will render the pagigation links, and there are a lot of options to customize it.

Concerning limit and offset: Using those is an absolute must to get reasonable performance. And, best of all: will_paginate uses them if you paginate active_record queries automatically!</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry to say this, but this is not exactly a good example for pagination or ruby programming in general. If you really want to roll your own solution, you should at least try to keep your views clean and simple and move this conditional code into a helper.</p>
<p>But why don&#8217;t you use what&#8217;s already there? will_paginate is a nice and simple solution for pagination. In your controller, you could write &#8216;@page = @videos.paginate :per_page =&gt; 10, :page =&gt; params[:page]&#8216; </p>
<p>In your view, use the pagination_helper like this:<br />
&#8221; This will render the pagigation links, and there are a lot of options to customize it.</p>
<p>Concerning limit and offset: Using those is an absolute must to get reasonable performance. And, best of all: will_paginate uses them if you paginate active_record queries automatically!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: random8r</title>
		<link>http://www.thewojogroup.com/2009/05/simple-pagination-with-rails/#comment-2815</link>
		<dc:creator>random8r</dc:creator>
		<pubDate>Tue, 05 May 2009 14:34:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=510#comment-2815</guid>
		<description>I noticed you&#039;ve added that you recommend using limit and offset... but I still stand by what I said... paginator is a better choice. (IMHO). More flexible, and not that much more code. More RUBY-like.</description>
		<content:encoded><![CDATA[<p>I noticed you&#8217;ve added that you recommend using limit and offset&#8230; but I still stand by what I said&#8230; paginator is a better choice. (IMHO). More flexible, and not that much more code. More RUBY-like.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
