<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;p&gt;Hi sirs.&lt;/p&gt; &lt;p&gt;I really recommend the official Ruby on Rails paginator. Very easy to use. Like 95% of the plugins =).&lt;/p&gt; &lt;p&gt;I just checkout the project on SVN, change one line of code on my controller, appends a line of code on the &amp;quot;.html.erb&amp;quot; template index file, and paste a piece of CSS code on the stylesheet, and it works. The piece of CSS code is defined on the README file inside the plugin's root directory.&lt;/p&gt; &lt;p&gt;In my case, I just insert on my controller:&lt;/p&gt; 
&lt;pre&gt;&lt;span class=&quot;attribute&quot;&gt;@posts&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;constant&quot;&gt;Post&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;paginate&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;symbol&quot;&gt;:page&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;ident&quot;&gt;params&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;symbol&quot;&gt;:page&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;symbol&quot;&gt;:per_page&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;number&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;symbol&quot;&gt;:order&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;created_at DESC&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;&amp;quot;)&lt;/span&gt;
&lt;/pre&gt;
&lt;p&gt;and just insert on the view's bottom:&lt;/p&gt; 
&lt;pre&gt;&lt;span class=&quot;punct&quot;&gt;&amp;lt;%=&lt;/span&gt;&lt;span class=&quot;string&quot;&gt; will_paginate @posts %&amp;gt;&lt;span class=&quot;normal&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;The CSS code I just change the color =).&lt;/p&gt; &lt;p&gt;The SVN repository is &lt;a href=&quot;svn://errtheblog.com/svn/plugins/will_paginate&quot;&gt;svn://errtheblog.com/svn/plugins/will_paginate&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The page that contains most of instructions is the &lt;a href=&quot;http://errtheblog.com/&quot;&gt;err.the_blog&lt;/a&gt;, but if you just read the README in the will_paginate plugin you will be prepared to do all the work.&lt;/p&gt; &lt;p&gt;See you.&lt;/p&gt;</body>
  <created-at type="datetime">2007-12-27T22:09:33Z</created-at>
  <id type="integer">11</id>
  <permalink>ruby-on-rails-pagination</permalink>
  <title>Ruby on Rails pagination</title>
  <updated-at type="datetime">2008-11-13T20:15:35Z</updated-at>
  <user-id type="integer">3</user-id>
</post>
