<?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: Rails Like SQL</title>
	<atom:link href="http://juixe.com/techknow/index.php/2006/05/11/rails-like-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://juixe.com/techknow/index.php/2006/05/11/rails-like-sql/</link>
	<description>Break Coders Block!</description>
	<lastBuildDate>Thu, 10 May 2012 17:02:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Juan</title>
		<link>http://juixe.com/techknow/index.php/2006/05/11/rails-like-sql/comment-page-1/#comment-56603</link>
		<dc:creator>Juan</dc:creator>
		<pubDate>Thu, 29 Sep 2011 21:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/05/11/rails-like-sql/#comment-56603</guid>
		<description>Remember rails finder methods with conditions are deprecated in 3.1 and will be removed in 3.2 so the proper way of doing something like this would be to use find_by_sql, at least while a DB agnostic method comes up that does the LIKE job</description>
		<content:encoded><![CDATA[<p>Remember rails finder methods with conditions are deprecated in 3.1 and will be removed in 3.2 so the proper way of doing something like this would be to use find_by_sql, at least while a DB agnostic method comes up that does the LIKE job</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marco</title>
		<link>http://juixe.com/techknow/index.php/2006/05/11/rails-like-sql/comment-page-1/#comment-15533</link>
		<dc:creator>marco</dc:creator>
		<pubDate>Tue, 27 Jul 2010 18:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/05/11/rails-like-sql/#comment-15533</guid>
		<description>Hi! I finally got it, here is what I did:
  like= &quot;%&quot;.concat(params[:name].concat(&quot;%&quot;))
  @items=Item.find(:all, :conditions =&gt; [&quot;name like ?&quot;,like])</description>
		<content:encoded><![CDATA[<p>Hi! I finally got it, here is what I did:<br />
  like= &#8220;%&#8221;.concat(params[:name].concat(&#8220;%&#8221;))<br />
  @items=Item.find(:all, :conditions =&gt; ["name like ?",like])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://juixe.com/techknow/index.php/2006/05/11/rails-like-sql/comment-page-1/#comment-43</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 10 Sep 2007 18:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/05/11/rails-like-sql/#comment-43</guid>
		<description>I had the same problem.  Here&#039;s the answer:

items = Item.find(:all, :conditions =&gt; [&quot;name like ?&quot;, &quot;%&quot; like &quot;%&quot;])</description>
		<content:encoded><![CDATA[<p>I had the same problem.  Here&#8217;s the answer:</p>
<p>items = Item.find(:all, :conditions =&gt; ["name like ?", "%" like "%"])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://juixe.com/techknow/index.php/2006/05/11/rails-like-sql/comment-page-1/#comment-42</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Sat, 31 Mar 2007 19:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.juixe.com/techknow/index.php/2006/05/11/rails-like-sql/#comment-42</guid>
		<description>Why not just use find_by_sql() ?</description>
		<content:encoded><![CDATA[<p>Why not just use find_by_sql() ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

