<?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: Recipe: RESTful search for Rails</title>
	<atom:link href="http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/</link>
	<description>Jo Hund's software engineering blog</description>
	<lastBuildDate>Thu, 19 Aug 2010 12:37:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Heiko</title>
		<link>http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/comment-page-1/#comment-162</link>
		<dc:creator>Heiko</dc:creator>
		<pubDate>Thu, 19 Nov 2009 15:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=218#comment-162</guid>
		<description>Thanks for your recipe! Exactly what I was looking for.

I have a very similar project running and I need to filter my projects for more than just one project.

Could anyone please post a hint how to get this working for filtering multiple Clients/projects (according to the example screenshot above). I tried to figure out on my own but I&#039;m stuck.

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Thanks for your recipe! Exactly what I was looking for.</p>
<p>I have a very similar project running and I need to filter my projects for more than just one project.</p>
<p>Could anyone please post a hint how to get this working for filtering multiple Clients/projects (according to the example screenshot above). I tried to figure out on my own but I&#8217;m stuck.</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jo Hund</title>
		<link>http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/comment-page-1/#comment-136</link>
		<dc:creator>Jo Hund</dc:creator>
		<pubDate>Wed, 15 Apr 2009 10:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=218#comment-136</guid>
		<description>Yes, you append any list option as query string params to the URL, as you wrote in your comment.</description>
		<content:encoded><![CDATA[<p>Yes, you append any list option as query string params to the URL, as you wrote in your comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnþór Snær</title>
		<link>http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/comment-page-1/#comment-132</link>
		<dc:creator>Arnþór Snær</dc:creator>
		<pubDate>Thu, 02 Apr 2009 00:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=218#comment-132</guid>
		<description>Do I understand correctly that with this recipe, I can not have the search parameters in the URL without breaking my &quot;clean&quot; URL&#039;s?

That is, if my code now generates these kinds of paths: controller/action/happy/2007

by going restful and using your recipe i will have to have this implementation: controller/action?term=happy&amp;year=2007 

Right?</description>
		<content:encoded><![CDATA[<p>Do I understand correctly that with this recipe, I can not have the search parameters in the URL without breaking my &#8220;clean&#8221; URL&#8217;s?</p>
<p>That is, if my code now generates these kinds of paths: controller/action/happy/2007</p>
<p>by going restful and using your recipe i will have to have this implementation: controller/action?term=happy&amp;year=2007 </p>
<p>Right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jo Hund</title>
		<link>http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/comment-page-1/#comment-130</link>
		<dc:creator>Jo Hund</dc:creator>
		<pubDate>Fri, 20 Mar 2009 16:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=218#comment-130</guid>
		<description>@Steve: the list_option_names class method returns the names of all the named scopes you want to expose as list_options. You might have a named_scope that you use only internally. So in this case you would replace :named_scope_that_is_not_a_list_option with the name of the named_scope you don&#039;t want to expose as a list option.

A scope becomes a list option when its name is returned from the list_option_names method. The method grabs the names of all defined scopes (self.scopes.map{&#124;s&#124; s.first} and removes the names of those you don&#039;t want as list_options (- [ the list of scopes to be removed goes here ] ).

In my recipe, the :named_scope_that_is_not_a_list_option is a bogus name, representing whatever you might want to put in here.</description>
		<content:encoded><![CDATA[<p>@Steve: the list_option_names class method returns the names of all the named scopes you want to expose as list_options. You might have a named_scope that you use only internally. So in this case you would replace :named_scope_that_is_not_a_list_option with the name of the named_scope you don&#8217;t want to expose as a list option.</p>
<p>A scope becomes a list option when its name is returned from the list_option_names method. The method grabs the names of all defined scopes (self.scopes.map{|s| s.first} and removes the names of those you don&#8217;t want as list_options (- [ the list of scopes to be removed goes here ] ).</p>
<p>In my recipe, the :named_scope_that_is_not_a_list_option is a bogus name, representing whatever you might want to put in here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/comment-page-1/#comment-129</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 20 Mar 2009 16:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=218#comment-129</guid>
		<description>Great article.

I am a little confused about what this is doing:

&lt;code&gt;
def self.list_option_names  
   self.scopes.map{&#124;s&#124; s.first} - [:named_scope_that_is_not_a_list_option]  end 
&lt;/code&gt;

specifically the 
&lt;code&gt;
- [:named_scope_that_is_not_a_list_option]
&lt;/code&gt;

How do scopes become &quot;list options&quot;?  When I run this I get the same result with or without that line.</description>
		<content:encoded><![CDATA[<p>Great article.</p>
<p>I am a little confused about what this is doing:</p>
<p><code><br />
def self.list_option_names<br />
   self.scopes.map{|s| s.first} - [:named_scope_that_is_not_a_list_option]  end<br />
</code></p>
<p>specifically the<br />
<code><br />
- [:named_scope_that_is_not_a_list_option]<br />
</code></p>
<p>How do scopes become &#8220;list options&#8221;?  When I run this I get the same result with or without that line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey</title>
		<link>http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/comment-page-1/#comment-127</link>
		<dc:creator>Alexey</dc:creator>
		<pubDate>Thu, 19 Mar 2009 14:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=218#comment-127</guid>
		<description>Thank you for nice tutorial. Works like a charm!</description>
		<content:encoded><![CDATA[<p>Thank you for nice tutorial. Works like a charm!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laszlo</title>
		<link>http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/comment-page-1/#comment-118</link>
		<dc:creator>Laszlo</dc:creator>
		<pubDate>Sun, 18 Jan 2009 23:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=218#comment-118</guid>
		<description>Thank you for the elegant solution. Exactly what I needed and and it worked perfectly.</description>
		<content:encoded><![CDATA[<p>Thank you for the elegant solution. Exactly what I needed and and it worked perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://clearcove.ca/blog/2008/12/recipe-restful-search-for-rails/comment-page-1/#comment-117</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Sat, 17 Jan 2009 22:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=218#comment-117</guid>
		<description>Thanks for the write up! Just implemented it on my order system and it works great!</description>
		<content:encoded><![CDATA[<p>Thanks for the write up! Just implemented it on my order system and it works great!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.308 seconds -->
