<?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>Railstic &#187; inflector</title>
	<atom:link href="http://railstic.com/tag/inflector/feed/" rel="self" type="application/rss+xml" />
	<link>http://railstic.com</link>
	<description>sharing experiences</description>
	<lastBuildDate>Mon, 15 Jun 2009 15:40:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Rails 2.2 &amp; Inflector</title>
		<link>http://railstic.com/2008/12/rails-22-inflector/</link>
		<comments>http://railstic.com/2008/12/rails-22-inflector/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 22:14:52 +0000</pubDate>
		<dc:creator>İ. Emre Kutlu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[inflector]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://izzetemrekutlu.com/blog/?p=92</guid>
		<description><![CDATA[If you have recently updated to Rails 2.2.2, you may encounter this error when you want to start your application: /.gem/ruby/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:445:in `load_missing_constant': uninitialized constant Inflector (NameError) As I learned from Paul&#8217;s post usage of Inflector class is changed a bit. You can see the difference when you compare the inflections.rb files. Path of the file [...]]]></description>
			<content:encoded><![CDATA[<p>If you have recently updated to Rails 2.2.2, you may encounter this error when you want to start your application:</p>

<div class="wp_codebox"><table><tr id="p924"><td class="code" id="p92code4"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>.gem<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>activesupport-2.2.2<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>active_support<span style="color: #000000; font-weight: bold;">/</span>dependencies.rb:<span style="color: #000000;">445</span>:<span style="color: #000000; font-weight: bold;">in</span>
<span style="color: #000000; font-weight: bold;">`</span>load_missing_constant<span style="color: #ff0000;">': uninitialized constant Inflector (NameError)</span></pre></td></tr></table></div>

<p>As I learned from <a href="http://paulsturgess.co.uk/articles/show/76-load_missing_constant-uninitialized-constant-inflector-when-upgrading-to-ruby-on-rails-222" target="_blank">Paul&#8217;s post</a> usage of <code>Inflector</code> class is changed a bit. You can see the difference when you compare the inflections.rb files. Path of the file is <em>yourApp/config/initializers/inflections.rb</em></p>
<p>inflections.rb (Rails 2.1.0)</p>

<div class="wp_codebox"><table><tr id="p925"><td class="code" id="p92code5"><pre class="ruby" style="font-family:monospace;"> <span style="color:#CC00FF; font-weight:bold;">Inflector</span>.<span style="color:#9900CC;">inflections</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>inflect<span style="color:#006600; font-weight:bold;">|</span>
  .
  .
  .
 <span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>inflections.rb (Rails 2.2.2)</p>

<div class="wp_codebox"><table><tr id="p926"><td class="code" id="p92code6"><pre class="ruby" style="font-family:monospace;"> ActiveSupport::<span style="color:#CC00FF; font-weight:bold;">Inflector</span>.<span style="color:#9900CC;">inflections</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>inflect<span style="color:#006600; font-weight:bold;">|</span>
  .
  .
  .
 <span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>In my situation changing <code>Inflector</code> to <code>ActiveSupport::Inflector</code> was enough to solve the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://railstic.com/2008/12/rails-22-inflector/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
