<?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: Where Plugin</title>
	<atom:link href="http://blog.invisible.ch/2006/01/02/where-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.invisible.ch/2006/01/02/where-plugin/</link>
	<description>Technology and Psychology -- two facets of life</description>
	<lastBuildDate>Sun, 20 Nov 2011 12:56:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Going Up &#187; Simplified Condition Class</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-16431</link>
		<dc:creator>Going Up &#187; Simplified Condition Class</dc:creator>
		<pubDate>Wed, 25 Oct 2006 14:27:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-16431</guid>
		<description>&lt;p&gt;[...] So I&#8217;ve tried Ezra&#8217;s &#8220;ez_where&#8221; and InVisible&#8217;s &#8220;where&#8221; plugins, but in the end I just couldn&#8217;t get past the hackish feeling I got when I used them. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] So I&#8217;ve tried Ezra&#8217;s &#8220;ez_where&#8221; and InVisible&#8217;s &#8220;where&#8221; plugins, but in the end I just couldn&#8217;t get past the hackish feeling I got when I used them. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Mahemoff</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-9560</link>
		<dc:creator>Michael Mahemoff</dc:creator>
		<pubDate>Tue, 29 Aug 2006 19:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-9560</guid>
		<description>&lt;p&gt;For anyone who&#039;s interested, here&#039;s how I got the internal test (where_test.rb) running for mysql.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Changed database in test_helper.rb from &quot;sqllite&quot; to &quot;mysql&quot;. (I didn&#039;t have env[db] setup.)&lt;/li&gt;
&lt;li&gt;Created a DB - &quot;create database where&lt;em&gt;plugin&lt;/em&gt;test&quot;&lt;/li&gt;
&lt;li&gt;Set DB name (where&lt;em&gt;plugin&lt;/em&gt;test), username, and password in the where project&#039;s database.yml
... Green Bar!&lt;/li&gt;
&lt;/ul&gt;
</description>
		<content:encoded><![CDATA[<p>For anyone who&#8217;s interested, here&#8217;s how I got the internal test (where_test.rb) running for mysql.</p>
<ul>
<li>Changed database in test_helper.rb from &#8220;sqllite&#8221; to &#8220;mysql&#8221;. (I didn&#8217;t have env[db] setup.)</li>
<li>Created a DB &#8211; &#8220;create database where<em>plugin</em>test&#8221;</li>
<li>Set DB name (where<em>plugin</em>test), username, and password in the where project&#8217;s database.yml<br />
&#8230; Green Bar!</li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens-Christian Fischer</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-2375</link>
		<dc:creator>Jens-Christian Fischer</dc:creator>
		<pubDate>Wed, 31 May 2006 22:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-2375</guid>
		<description>&lt;p&gt;Alan, I&#039;m not sure I understand your question. I usually use this plugin in my models when there&#039;s a
&lt;pre&gt;Model.find( ... )&lt;/pre&gt; statement that has a very complex :conditions =&gt; {} part. Does that answer your question? Otherwise, please provide more information on what you are trying to do&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Alan, I&#8217;m not sure I understand your question. I usually use this plugin in my models when there&#8217;s a</p>
<pre>Model.find( ... )</pre>
<p> statement that has a very complex :conditions =&gt; {} part. Does that answer your question? Otherwise, please provide more information on what you are trying to do</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-2373</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Wed, 31 May 2006 19:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-2373</guid>
		<description>&lt;p&gt;So exactly how do you use the examples? Do you put your example code in a view protected with &lt;% markup?  I could not get it to work.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>So exactly how do you use the examples? Do you put your example code in a view protected with &lt;% markup?  I could not get it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-2038</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Thu, 25 May 2006 16:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-2038</guid>
		<description>&lt;p&gt;Thanks iktorn, I commited a new version with 2 out 3 of your problems fixed. I&#039;ll look into the third (availability of variables in block) later&lt;/p&gt;

&lt;p&gt;jc&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks iktorn, I commited a new version with 2 out 3 of your problems fixed. I&#8217;ll look into the third (availability of variables in block) later</p>
<p>jc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iktorn</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-2033</link>
		<dc:creator>iktorn</dc:creator>
		<pubDate>Thu, 25 May 2006 09:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-2033</guid>
		<description>&lt;p&gt;A new bug found... :)&lt;/p&gt;

&lt;pre&gt;
options = args.last.class.is_a?(Hash) ? args.pop : {} 
&lt;/pre&gt;

&lt;p&gt;should be&lt;/p&gt;

&lt;pre&gt;
options = args.last.is_a?(Hash) ? args.pop : {} 
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>A new bug found&#8230; :)</p>
<pre>
options = args.last.class.is_a?(Hash) ? args.pop : {}
</pre>
<p>should be</p>
<pre>
options = args.last.is_a?(Hash) ? args.pop : {}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Administrator</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-2013</link>
		<dc:creator>Administrator</dc:creator>
		<pubDate>Tue, 23 May 2006 05:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-2013</guid>
		<description>&lt;p&gt;iktorn, yes you are right, params is not accesible in that context. Take a look at Ezra&#039;s ez&lt;em&gt;where plugin (http://agilewebdevelopment.com/plugins/ez&lt;/em&gt;where) which has this problem solved (and expands the whole thing with a beautiful ruby like way of doing the query)&lt;/p&gt;

&lt;p&gt;I&#039;ll take a look at the second problem when I find some time&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>iktorn, yes you are right, params is not accesible in that context. Take a look at Ezra&#8217;s ez<em>where plugin (<a href="http://agilewebdevelopment.com/plugins/ez" rel="nofollow">http://agilewebdevelopment.com/plugins/ez</a></em>where) which has this problem solved (and expands the whole thing with a beautiful ruby like way of doing the query)</p>
<p>I&#8217;ll take a look at the second problem when I find some time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iktorn</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-1957</link>
		<dc:creator>iktorn</dc:creator>
		<pubDate>Fri, 19 May 2006 10:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-1957</guid>
		<description>&lt;p&gt;Update - I think the no 1 is the issue with method_missing...
I don&#039;t know how to fix it though&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Update &#8211; I think the no 1 is the issue with method_missing&#8230;<br />
I don&#8217;t know how to fix it though</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iktorn</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-1956</link>
		<dc:creator>iktorn</dc:creator>
		<pubDate>Fri, 19 May 2006 10:43:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-1956</guid>
		<description>&lt;p&gt;The plugin is awesome. I was looking for a clean way to add multiple conds to find. BUT - 2 things:
I use:
&lt;code&gt;
name &#039;like&#039;, &#039;%&#039; + params[:search] + &#039;%&#039; unless params[:search].nil
&lt;/code&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;params is inaccessible is this the same thing as with self?&lt;/li&gt;
&lt;li&gt;if there are no conditions (all are nil?):
&lt;code&gt;
Task.find&lt;em&gt;with&lt;/em&gt;conditions(:all) do
end
&lt;/code&gt;
I get a SQL error it produces &#039;AND ()&#039;.&lt;/li&gt;
&lt;/ol&gt;
</description>
		<content:encoded><![CDATA[<p>The plugin is awesome. I was looking for a clean way to add multiple conds to find. BUT &#8211; 2 things:<br />
I use:<br />
<code><br />
name 'like', '%' + params[:search] + '%' unless params[:search].nil<br />
</code></p>
<ol>
<li>params is inaccessible is this the same thing as with self?</li>
<li>if there are no conditions (all are nil?):<br />
<code><br />
Task.find<em>with</em>conditions(:all) do<br />
end<br />
</code><br />
I get a SQL error it produces &#8216;AND ()&#8217;.</li>
</ol>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin</title>
		<link>http://blog.invisible.ch/2006/01/02/where-plugin/comment-page-1/#comment-1289</link>
		<dc:creator>Benjamin</dc:creator>
		<pubDate>Tue, 11 Apr 2006 01:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.invisible.ch/?p=497#comment-1289</guid>
		<description>&lt;p&gt;Your plugin is definetely useful for people who want an alternative style to crafting their conditions. You could actually put conditions in a seperate file entirely if you wanted a really clean looking file and just have condition definitions elsewhere. That&#039;d be an interesting way to organize them. Thoughts?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Your plugin is definetely useful for people who want an alternative style to crafting their conditions. You could actually put conditions in a seperate file entirely if you wanted a really clean looking file and just have condition definitions elsewhere. That&#8217;d be an interesting way to organize them. Thoughts?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

