<?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"
	>
<channel>
	<title>Comments on: Mongrel, rails and the theory of relativity</title>
	<atom:link href="http://inodes.org/blog/2007/04/04/mongrel-rails-and-the-theory-of-relativity/feed/" rel="self" type="application/rss+xml" />
	<link>http://inodes.org/blog/2007/04/04/mongrel-rails-and-the-theory-of-relativity/</link>
	<description>Moo - Development, Trouble-shooting and Random thoughts...</description>
	<pubDate>Thu, 20 Nov 2008 22:45:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Cathal</title>
		<link>http://inodes.org/blog/2007/04/04/mongrel-rails-and-the-theory-of-relativity/#comment-2404</link>
		<dc:creator>Cathal</dc:creator>
		<pubDate>Mon, 31 Mar 2008 22:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://inodes.org/blog/2007/04/04/mongrel-rails-and-the-theory-of-relativity/#comment-2404</guid>
		<description>To solve the problem with static resources I just made all the references relative. So background-image: url(/images/bg_image.jpg); becomes background-image url(../images/bg_image.jpg); assuming that the 'images' directory is at the same level as your 'stylesheet' directory.</description>
		<content:encoded><![CDATA[<p>To solve the problem with static resources I just made all the references relative. So background-image: url(/images/bg_image.jpg); becomes background-image url(../images/bg_image.jpg); assuming that the &#8216;images&#8217; directory is at the same level as your &#8217;stylesheet&#8217; directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: salamander</title>
		<link>http://inodes.org/blog/2007/04/04/mongrel-rails-and-the-theory-of-relativity/#comment-2235</link>
		<dc:creator>salamander</dc:creator>
		<pubDate>Tue, 08 Jan 2008 22:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://inodes.org/blog/2007/04/04/mongrel-rails-and-the-theory-of-relativity/#comment-2235</guid>
		<description>Thanks.  I read elsewhere to put this in environment.rb but I could not figure out how to not have to alter my development setup to accommodate this change. Seems pretty obvious now to put it in production.rb.

But I do have another issue to point out.  relative_url_root was not able to handle my CSS file's use of an absolute path, like so: 

background-image: url(/images/bg_image.jpg);

So, my background image no longer appears because it's not able to actually find it in /other_url/images/bg_image.jpg.

Were you able to find a workaround?</description>
		<content:encoded><![CDATA[<p>Thanks.  I read elsewhere to put this in environment.rb but I could not figure out how to not have to alter my development setup to accommodate this change. Seems pretty obvious now to put it in production.rb.</p>
<p>But I do have another issue to point out.  relative_url_root was not able to handle my CSS file&#8217;s use of an absolute path, like so: </p>
<p>background-image: url(/images/bg_image.jpg);</p>
<p>So, my background image no longer appears because it&#8217;s not able to actually find it in /other_url/images/bg_image.jpg.</p>
<p>Were you able to find a workaround?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
