<?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; plugins</title>
	<atom:link href="http://www.railsguru.com/articles/tag/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.railsguru.com</link>
	<description>Andy Lo-A-Foe&#039;s blog</description>
	<lastBuildDate>Fri, 09 Jul 2010 12:08:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</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 bit of problem when I tried tagging an object with the tags &#8220;cool mac 2008&#8243;. [...]]]></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>
]]></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>
