<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LolocoJr &#187; tagging</title>
	<atom:link href="http://www.railsguru.com/articles/tag/tagging/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.railsguru.com</link>
	<description>Andy Lo-A-Foe&#039;s blog</description>
	<lastBuildDate>Thu, 21 Jul 2011 13:31:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>has_many_polymorphs tagging snafu</title>
		<link>http://www.railsguru.com/articles/2008/01/17/has_many_polymorphs-tagging-snafu/</link>
		<comments>http://www.railsguru.com/articles/2008/01/17/has_many_polymorphs-tagging-snafu/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 20:40:00 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[has_many_polymorphs]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[tagging]]></category>

		<guid isPermaLink="false">http://www.railsguru.com/2008/01/17/has_many_polymorphs-tagging-snafu</guid>
		<description><![CDATA[I&#8217;m working on a Rails 2.0.x project which is a port of a 1.2.x based one. Since acts_as_taggable was obsoleted in 2.0.x I&#8217;m using the ultra wicked has_many_polymorphs plugin which comes with a neat Tagging generator. I ran in a &#8230; <a href="http://www.railsguru.com/articles/2008/01/17/has_many_polymorphs-tagging-snafu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on a Rails 2.0.x project which is a port of a 1.2.x based one. Since acts_as_taggable was obsoleted in 2.0.x I&#8217;m using the ultra wicked <strong>has_many_polymorphs</strong> plugin which comes with a neat Tagging generator. I ran in a bit of problem when I tried tagging an object with the tags &#8220;cool mac 2008&#8243;. It turned out the &#8220;2008&#8243; is the culprit since the tag_with method that&#8217;s introduced tries to be really smart about things. I.e. it assumes that if you pass a number in the tag_with string you actually want to use the Tag object with ID=2008. Of course we don&#8217;t have 2008 tags yet so it breaks down with an exception. The solution was really simple. Just remove the Fixnum check in the lib/lagging_extensions.rb ..</p>
<p>
P.S. Better late than never: <strong>Happy 2008!!!</strong></p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><script type="text/javascript"><!--
google_ad_client = "pub-6322765154114793";
/* 300x250, created 7/3/11 */
google_ad_slot = "6228709946";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.railsguru.com/articles/2008/01/17/has_many_polymorphs-tagging-snafu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

