<?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: Deploying my first rails app</title>
	<atom:link href="http://slagwerks.com/blog/index.php/2007/01/10/deploying-my-first-rails-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://slagwerks.com/blog/index.php/2007/01/10/deploying-my-first-rails-app/</link>
	<description></description>
	<lastBuildDate>Thu, 30 Jul 2009 15:44:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: joe</title>
		<link>http://slagwerks.com/blog/index.php/2007/01/10/deploying-my-first-rails-app/comment-page-1/#comment-2510</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Fri, 24 Aug 2007 21:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://slagwerks.com/blog/?p=10#comment-2510</guid>
		<description>Right on - that totally takes care of it.

Here&#039;s what I have now, which is working well:

1. add something like  ActionController::AbstractRequest.relative_url_root = PATH_PREFIX
 to config/routes.rb
2. add PATH_PREFIX = &#039;&#039; 
after the bootstrap part of config/environments.rb
3. override it in config/environments/production.rb
PATH_PREFIX = &#039;/whatever&#039;</description>
		<content:encoded><![CDATA[<p>Right on - that totally takes care of it.</p>
<p>Here&#8217;s what I have now, which is working well:</p>
<p>1. add something like  ActionController::AbstractRequest.relative_url_root = PATH_PREFIX<br />
 to config/routes.rb<br />
2. add PATH_PREFIX = &#8221;<br />
after the bootstrap part of config/environments.rb<br />
3. override it in config/environments/production.rb<br />
PATH_PREFIX =&nbsp;&#8217;/whatever&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EatLotsOfMeat</title>
		<link>http://slagwerks.com/blog/index.php/2007/01/10/deploying-my-first-rails-app/comment-page-1/#comment-2397</link>
		<dc:creator>EatLotsOfMeat</dc:creator>
		<pubDate>Sun, 19 Aug 2007 17:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://slagwerks.com/blog/?p=10#comment-2397</guid>
		<description>What I was able to do is to use RAILS_RELATIVE_URL_ROOT by sticking it in &quot;routes.rb&quot; as described in the post you mentioned.  Then I simply made a constant (MY_PATH) in the environments/development.rb and environments/production.rb files (which needed to be different) and then used that on the call in routes.rb:
ActionController::AbstractRequest.relative_url_root = MY_PATH
This may get around the issue you were describing.  So... in development.rb you would have something like: MY_PATH = &#039;/whatever&#039;</description>
		<content:encoded><![CDATA[<p>What I was able to do is to use RAILS_RELATIVE_URL_ROOT by sticking it in &#8220;routes.rb&#8221; as described in the post you mentioned.  Then I simply made a constant (MY_PATH) in the environments/development.rb and environments/production.rb files (which needed to be different) and then used that on the call in routes.rb:<br />
ActionController::AbstractRequest.relative_url_root = MY_PATH<br />
This may get around the issue you were describing.  So&#8230; in development.rb you would have something like: MY_PATH =&nbsp;&#8217;/whatever&#8217;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
