<?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>Technical Ramblings &#187; Phusion Passenger</title>
	<atom:link href="http://jonswope.com/tag/phusion-passenger/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonswope.com</link>
	<description>More information than you cared to know about whatever I find cool</description>
	<lastBuildDate>Sun, 25 Jul 2010 21:58:12 +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>Passenger can&#8217;t find Rails</title>
		<link>http://jonswope.com/2010/01/24/passenger-cant-find-rails/</link>
		<comments>http://jonswope.com/2010/01/24/passenger-cant-find-rails/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 06:21:59 +0000</pubDate>
		<dc:creator>Jon Swope</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Phusion Passenger]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://jonswope.com/?p=42</guid>
		<description><![CDATA[If you are running in to an issue where you are trying to get a Rails app up and running, but are receiving the error &#8220;Missing the Rails 2.x.x gem&#8230;&#8221; when you attempt to access it despite Rails being installed and available to your system, do not panic.  Rails is just giving you an extremely [...]]]></description>
			<content:encoded><![CDATA[<p>If you are running in to an issue where you are trying to get a Rails app up and running, but are receiving the error &#8220;Missing the Rails 2.x.x gem&#8230;&#8221; when you attempt to access it despite Rails being installed and available to your system, do not panic.  Rails is just giving you an extremely unhelpful error message.</p>
<p>Rails catches *any* problem loading the Rails gem, and then responds with that error.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"> <span style="color:#9966CC; font-weight:bold;">rescue</span> <span style="color:#6666ff; font-weight:bold;">Gem::LoadError</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> load_error
      <span style="color:#ff6633; font-weight:bold;">$stderr</span>.<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#006600; font-weight:bold;">%</span><span style="color:#006600; font-weight:bold;">&#40;</span>Missing the Rails <span style="color:#008000; font-style:italic;">#{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)</span>
      <span style="color:#CC0066; font-weight:bold;">exit</span> <span style="color:#006666;">1</span></pre></div></div>

<p>If you inspect load_error from the line above, you should see the actual error message.  In my case it was that ActiveSupport required Rack v1.0.0, but Passenger had already instantiated Rack v1.1.0.  This led to a failure when loading the Rails gem, which was of course incorrectly reported.  My quick solution was to uninstall the new version of rack, and force the install of the older version.</p>
<p>As a side note: I have the world&#8217;s worst code highlighter.</p>
]]></content:encoded>
			<wfw:commentRss>http://jonswope.com/2010/01/24/passenger-cant-find-rails/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
