<?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: Customizing :scope in acts_as_list</title>
	<atom:link href="http://macdiggs.com/2007/08/27/customizing-scope-in-acts_as_list/feed/" rel="self" type="application/rss+xml" />
	<link>http://macdiggs.com/2007/08/27/customizing-scope-in-acts_as_list/</link>
	<description>Digging the watery grave and talking about PHP, Rails and tech stuff..</description>
	<pubDate>Thu, 17 May 2012 16:27:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christian</title>
		<link>http://macdiggs.com/2007/08/27/customizing-scope-in-acts_as_list/comment-page-1/#comment-27616</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Wed, 19 Nov 2008 19:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/08/27/customizing-scope-in-acts_as_list/#comment-27616</guid>
		<description>You want single quotes because you need to defer the interpolation of the variables.
If you used double quotes, #{category_id} would be replaced with whatever value it has when the model is loaded, probably not what you expect.</description>
		<content:encoded><![CDATA[<p>You want single quotes because you need to defer the interpolation of the variables.<br />
If you used double quotes, #{category_id} would be replaced with whatever value it has when the model is loaded, probably not what you expect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Byrtek</title>
		<link>http://macdiggs.com/2007/08/27/customizing-scope-in-acts_as_list/comment-page-1/#comment-27267</link>
		<dc:creator>Adam Byrtek</dc:creator>
		<pubDate>Wed, 16 Jul 2008 17:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/08/27/customizing-scope-in-acts_as_list/#comment-27267</guid>
		<description>Another option is to manually define "scope_condition" method after invoking acts_as_list with no scope argument. This gives you more control, you can put any Ruby code inside as long as it returns a string to be included in conditions.</description>
		<content:encoded><![CDATA[<p>Another option is to manually define &#034;scope_condition&#034; method after invoking acts_as_list with no scope argument. This gives you more control, you can put any Ruby code inside as long as it returns a string to be included in conditions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://macdiggs.com/2007/08/27/customizing-scope-in-acts_as_list/comment-page-1/#comment-26332</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sat, 10 Nov 2007 01:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/08/27/customizing-scope-in-acts_as_list/#comment-26332</guid>
		<description>Anthony,

unfortunately, learning Ruby will not help you in this particular case. A better documentation with example for more cases will help though. But it's nowhere to be found.
The best way to identify this problem was to run some sample commands and see how these are converted to SQL statements in the development.log. This way it was kind of easy to identify the source of the problem. I spent lots of time trying to figure the solution for this issue, also :/</description>
		<content:encoded><![CDATA[<p>Anthony,</p>
<p>unfortunately, learning Ruby will not help you in this particular case. A better documentation with example for more cases will help though. But it&#039;s nowhere to be found.<br />
The best way to identify this problem was to run some sample commands and see how these are converted to SQL statements in the development.log. This way it was kind of easy to identify the source of the problem. I spent lots of time trying to figure the solution for this issue, also :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://macdiggs.com/2007/08/27/customizing-scope-in-acts_as_list/comment-page-1/#comment-26331</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Sat, 10 Nov 2007 00:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/08/27/customizing-scope-in-acts_as_list/#comment-26331</guid>
		<description>You are the MAN!  I've been banging my head against the wall for an hour trying to figure out how to do this.  Maybe I should try to learn Ruby before trying to do crazy stuff with Rails...</description>
		<content:encoded><![CDATA[<p>You are the MAN!  I&#039;ve been banging my head against the wall for an hour trying to figure out how to do this.  Maybe I should try to learn Ruby before trying to do crazy stuff with Rails&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://macdiggs.com/2007/08/27/customizing-scope-in-acts_as_list/comment-page-1/#comment-26324</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Wed, 07 Nov 2007 02:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/08/27/customizing-scope-in-acts_as_list/#comment-26324</guid>
		<description>hi greg,

thanks for the comment. Always a pleasure to know my little entries are of help to some people.

cheers,
mike.</description>
		<content:encoded><![CDATA[<p>hi greg,</p>
<p>thanks for the comment. Always a pleasure to know my little entries are of help to some people.</p>
<p>cheers,<br />
mike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: greg</title>
		<link>http://macdiggs.com/2007/08/27/customizing-scope-in-acts_as_list/comment-page-1/#comment-26322</link>
		<dc:creator>greg</dc:creator>
		<pubDate>Wed, 07 Nov 2007 00:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://macdiggs.com/index.php/2007/08/27/customizing-scope-in-acts_as_list/#comment-26322</guid>
		<description>thanks mike,

you did indeed save me some hitting-myself-with-blunt-objects today with your single-quote only comment... I've been doing some rails v1.2 STI stuff with acts_as_list in the subclasses and trying to scope them nicely based on the type field... tried a few hacks and stuff myself, then googled your comments on the quotes. Painful, eh?

cheers,

// greg</description>
		<content:encoded><![CDATA[<p>thanks mike,</p>
<p>you did indeed save me some hitting-myself-with-blunt-objects today with your single-quote only comment&#8230; I&#039;ve been doing some rails v1.2 STI stuff with acts_as_list in the subclasses and trying to scope them nicely based on the type field&#8230; tried a few hacks and stuff myself, then googled your comments on the quotes. Painful, eh?</p>
<p>cheers,</p>
<p>// greg</p>
]]></content:encoded>
	</item>
</channel>
</rss>

