<?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: RESTful searching in Rails</title>
	<atom:link href="http://www.bencurtis.com/2008/06/restful-searching-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bencurtis.com/2008/06/restful-searching-in-rails/</link>
	<description>Speculations on Web Development by Benjamin Curtis</description>
	<lastBuildDate>Fri, 27 Aug 2010 13:20:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Latest Bookmarks on Ma.gnolia.com at Ivan Enviroman</title>
		<link>http://www.bencurtis.com/2008/06/restful-searching-in-rails/comment-page-1/#comment-1524</link>
		<dc:creator>Latest Bookmarks on Ma.gnolia.com at Ivan Enviroman</dc:creator>
		<pubDate>Sun, 06 Jul 2008 07:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.bencurtis.com/?p=135#comment-1524</guid>
		<description>[...] BenCurtis.com » RESTful searching in Rails [...]</description>
		<content:encoded><![CDATA[<p>[...] BenCurtis.com » RESTful searching in Rails [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Manges</title>
		<link>http://www.bencurtis.com/2008/06/restful-searching-in-rails/comment-page-1/#comment-1523</link>
		<dc:creator>Dan Manges</dc:creator>
		<pubDate>Sat, 05 Jul 2008 21:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.bencurtis.com/?p=135#comment-1523</guid>
		<description>+1 on moving the search logic to the model. For what it&#039;s worth, you don&#039;t need to wrap the params in an h call when passing to the form helpers.</description>
		<content:encoded><![CDATA[<p>+1 on moving the search logic to the model. For what it&#8217;s worth, you don&#8217;t need to wrap the params in an h call when passing to the form helpers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RESTful Searching in Rails</title>
		<link>http://www.bencurtis.com/2008/06/restful-searching-in-rails/comment-page-1/#comment-1521</link>
		<dc:creator>RESTful Searching in Rails</dc:creator>
		<pubDate>Mon, 30 Jun 2008 14:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.bencurtis.com/?p=135#comment-1521</guid>
		<description>[...] Ben Curtis demonstrates RESTful Searching in Rails. [...]</description>
		<content:encoded><![CDATA[<p>[...] Ben Curtis demonstrates RESTful Searching in Rails. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Meehan</title>
		<link>http://www.bencurtis.com/2008/06/restful-searching-in-rails/comment-page-1/#comment-1519</link>
		<dc:creator>Adam Meehan</dc:creator>
		<pubDate>Sat, 28 Jun 2008 06:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.bencurtis.com/?p=135#comment-1519</guid>
		<description>I think Alex is right, that it was the query params that threw people. I continued doing it the same way as you have done it, but read enough posts about &#039;the RESTful search problem&#039; I started doubt myself. 

There are few solutions out there, but I found the criteria_query plugin (http://www.muermann.org/ruby/criteria_query/) good for building model find conditions from form params like your example.</description>
		<content:encoded><![CDATA[<p>I think Alex is right, that it was the query params that threw people. I continued doing it the same way as you have done it, but read enough posts about &#8216;the RESTful search problem&#8217; I started doubt myself. </p>
<p>There are few solutions out there, but I found the criteria_query plugin (<a href="http://www.muermann.org/ruby/criteria_query/" rel="nofollow">http://www.muermann.org/ruby/criteria_query/</a>) good for building model find conditions from form params like your example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Tron</title>
		<link>http://www.bencurtis.com/2008/06/restful-searching-in-rails/comment-page-1/#comment-1517</link>
		<dc:creator>Jonathan Tron</dc:creator>
		<pubDate>Fri, 27 Jun 2008 22:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.bencurtis.com/?p=135#comment-1517</guid>
		<description>I second Ryan Bates about moving search logic in the model, anyway I found pretty useful to use an OpenStruct initialized with the search params :

@search = OpenStruct.new(params[:search])

Then in your view you can use the different FormHelper methods on the @search object.
If at any time you need/want to store queries (to speedup app, for later reuse or for statistics) you can easily swap your OpenStruct with your model.</description>
		<content:encoded><![CDATA[<p>I second Ryan Bates about moving search logic in the model, anyway I found pretty useful to use an OpenStruct initialized with the search params :</p>
<p>@search = OpenStruct.new(params[:search])</p>
<p>Then in your view you can use the different FormHelper methods on the @search object.<br />
If at any time you need/want to store queries (to speedup app, for later reuse or for statistics) you can easily swap your OpenStruct with your model.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
