<?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: Acts as Taggable, now under new management</title>
	<atom:link href="http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/</link>
	<description>letting the problem solve itself</description>
	<lastBuildDate>Sat, 30 Jul 2011 00:26:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Vivek</title>
		<link>http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/comment-page-1/#comment-188</link>
		<dc:creator>Vivek</dc:creator>
		<pubDate>Thu, 29 Dec 2005 03:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/#comment-188</guid>
		<description>Hi ,
 I have been trying to use acts_as_taggable and I want to try and implement an automatic counter increment.I have a taggable model
Item whose corr table is &#039;items&#039; .The Tag model has a &#039;tags&#039; table which apart from name and id has a &#039;items&#039; field (the same as the taggable model&#039;s table name) 
Whenever I add a tag to the item I want to increment the tag count in the items field so that I dont have to run a count query each time. (This is optimization is needed because I do this many times  in my app)
I tried something like this in  in Taggable::InstanceMethods::tag 

 tag_record[ &quot;#{table_name}&quot;] += 1
 But I get a method not found error.Is there a way to acheive this?
Please help.
Vivek</description>
		<content:encoded><![CDATA[<p>Hi ,<br />
 I have been trying to use acts_as_taggable and I want to try and implement an automatic counter increment.I have a taggable model<br />
Item whose corr table is &#8216;items&#8217; .The Tag model has a &#8216;tags&#8217; table which apart from name and id has a &#8216;items&#8217; field (the same as the taggable model&#8217;s table name)<br />
Whenever I add a tag to the item I want to increment the tag count in the items field so that I dont have to run a count query each time. (This is optimization is needed because I do this many times  in my app)<br />
I tried something like this in  in Taggable::InstanceMethods::tag </p>
<p> tag_record[ "#{table_name}"] += 1<br />
 But I get a method not found error.Is there a way to acheive this?<br />
Please help.<br />
Vivek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dema</title>
		<link>http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/comment-page-1/#comment-121</link>
		<dc:creator>Dema</dc:creator>
		<pubDate>Tue, 01 Nov 2005 02:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/#comment-121</guid>
		<description>Way to go, Carlos! Good luck to you my friend.</description>
		<content:encoded><![CDATA[<p>Way to go, Carlos! Good luck to you my friend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jB: no - that's definitely not good enough</title>
		<link>http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/comment-page-1/#comment-120</link>
		<dc:creator>jB: no - that's definitely not good enough</dc:creator>
		<pubDate>Mon, 31 Oct 2005 19:58:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/#comment-120</guid>
		<description>&lt;strong&gt;Ruby on Rails&#039; Acts as Taggable new team&lt;/strong&gt;

-&gt; http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/</description>
		<content:encoded><![CDATA[<p><strong>Ruby on Rails&#8217; Acts as Taggable new team</strong></p>
<p>-&gt; <a href="http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/" rel="nofollow">http://www.lixo.org/archives/2005/10/31/acts-as-taggable-now-under-new-management/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

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

