<?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>Jigsaw Boys &#187; rails</title>
	<atom:link href="http://www.jigsawboys.com/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jigsawboys.com</link>
	<description>Security, Network and Computer Tech Tip Database!</description>
	<lastBuildDate>Wed, 17 Aug 2011 22:59:12 +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>Will_paginate with multiple models</title>
		<link>http://www.jigsawboys.com/2010/03/02/will_paginate-with-multiple-models/</link>
		<comments>http://www.jigsawboys.com/2010/03/02/will_paginate-with-multiple-models/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 06:39:08 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[paging]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[will_paginate]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=341</guid>
		<description><![CDATA[If you need to implement paging in your Ruby on Rails application, a quick and easy way is to use the fantastic &#8220;Will_Paginate&#8221; plugin (available here). However I came across a need to paginate multiple models on the same page, for example; a list of users and a list of groups. Luckily Google came to [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you need to implement paging in your Ruby on Rails application, a quick and easy way is to use the fantastic &#8220;Will_Paginate&#8221; plugin (<a href="http://wiki.github.com/mislav/will_paginate/" target="_blank">available here</a>).</p>
<p>However I came across a need to paginate multiple models on the same page, for example; a list of users and a list of groups.</p>
<p>Luckily Google came to the rescue with <a href="http://candidcode.com/2009/11/03/paginating-multiple-models-using-will_paginate-on-the-same-page/" target="_blank">this article</a>, which demonstrates the use of the :page option, allowing you to specify the page against a model object.</p>
<p>Check out the code below (courtesay of candidcode.com)</p>
<p><strong>Controller</strong></p>
<pre class="brush: ruby; title: ; notranslate">
@users = User.paginate(:page =&gt; params[:user_page], :per_page =&gt; 10)
@administrators = Administrator.paginate(:page =&gt; params[:administrator_page], :per_page =&gt; 10)
</pre>
<p><strong>View</strong></p>
<pre class="brush: ruby; title: ; notranslate">
&lt;%= will_paginate @users, :param_name =&gt; 'user_page' %&gt;
&lt;%= will_paginate @administrators, :param_name =&gt; 'administrator_page' %&gt;
</pre>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/03/02/will_paginate-with-multiple-models/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Postgres gem on Windows</title>
		<link>http://www.jigsawboys.com/2009/07/17/installing-postgres-gem-on-windows/</link>
		<comments>http://www.jigsawboys.com/2009/07/17/installing-postgres-gem-on-windows/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 00:03:05 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/2009/07/17/installing-postgres-gem-on-windows/</guid>
		<description><![CDATA[So you&#8217;re trying to install the postgres gem for ruby on rails, but you&#8217;re getting the following message; Could not find PostgreSQL build environment (libraries &#38; headers): Makefile not created This is most likely due to the fact that you&#8217;re not using the mswin32 gem for Ruby. Give this a whirl; gem install ruby-postgres No [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;re trying to install the postgres gem for ruby on rails, but you&#8217;re getting the following message;</p>
<blockquote>
<p><em>Could not find PostgreSQL build environment (libraries &amp; headers): Makefile not created</em></p>
</blockquote>
<p>This is most likely due to the fact that you&#8217;re not using the mswin32 gem for Ruby.</p>
<p>Give this a whirl;</p>
<p><strong>gem install ruby-postgres</strong></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2009/07/17/installing-postgres-gem-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

