<?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: Rails 2.0.2 released, so what&#8217;s new?</title>
	<atom:link href="http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/</link>
	<description>Rails, Firefox, Anime, Mac</description>
	<lastBuildDate>Thu, 18 Mar 2010 03:29:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rails 2.0.2 Released, 2.1.0 is on the horizon</title>
		<link>http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/comment-page-1/#comment-681941</link>
		<dc:creator>Rails 2.0.2 Released, 2.1.0 is on the horizon</dc:creator>
		<pubDate>Tue, 09 Dec 2008 22:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/#comment-681941</guid>
		<description>[...] The Rails core team has released Rails 2.0.2. It just keeps getting better and better, and faster and faster. Here&#8217;s a breakdown of the updates. For more details, check out the blog of Cheah Chu Yeow. [...]</description>
		<content:encoded><![CDATA[<p>[...] The Rails core team has released Rails 2.0.2. It just keeps getting better and better, and faster and faster. Here&#8217;s a breakdown of the updates. For more details, check out the blog of Cheah Chu Yeow. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gertas</title>
		<link>http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/comment-page-1/#comment-622943</link>
		<dc:creator>gertas</dc:creator>
		<pubDate>Tue, 13 May 2008 16:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/#comment-622943</guid>
		<description>It&#039;s quite while on this but I have a comment on usage of &lt;code&gt;ActionController::Base.asset_host&lt;/code&gt; presented here.  Using &lt;code&gt;rand&lt;/code&gt; may cause more harm than benefit. The problem is that same asset may have to be downloaded twice in above scenario because for two separate page impressions different hosts may be generated.
Something needs to keep a same host name for a same asset. The solution I found which works well is using &lt;code&gt;.hash&lt;/code&gt; method on source and leaving last two bits of resulting number (x AND 3). This gives a number 0-3 which may be used to prepare host name. It should look like this:

ActionController::Base.asset_host = Proc.new { &#124;source&#124; &quot;http://assets#{source.hash  &amp;  3}.example.com&quot; }

Havn&#039;t tested above line - written from memory.</description>
		<content:encoded><![CDATA[<p>It&#8217;s quite while on this but I have a comment on usage of <code>ActionController::Base.asset_host</code> presented here.  Using <code>rand</code> may cause more harm than benefit. The problem is that same asset may have to be downloaded twice in above scenario because for two separate page impressions different hosts may be generated.<br />
Something needs to keep a same host name for a same asset. The solution I found which works well is using <code>.hash</code> method on source and leaving last two bits of resulting number (x AND 3). This gives a number 0-3 which may be used to prepare host name. It should look like this:</p>
<p>ActionController::Base.asset_host = Proc.new { |source| &#8220;http://assets#{source.hash  &amp;  3}.example.com&#8221; }</p>
<p>Havn&#8217;t tested above line &#8211; written from memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Living on the Edge (of Rails) #3 - X-Sendfile and many other sexy enhancements - redemption in a blog</title>
		<link>http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/comment-page-1/#comment-447733</link>
		<dc:creator>Living on the Edge (of Rails) #3 - X-Sendfile and many other sexy enhancements - redemption in a blog</dc:creator>
		<pubDate>Wed, 16 Jan 2008 15:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/#comment-447733</guid>
		<description>[...] you to set ActionController::Base.asset_host to a proc that took a single source argument (as detailed in my earlier post). People were still running into problems with asset hosting though, particularly while trying to [...]</description>
		<content:encoded><![CDATA[<p>[...] you to set ActionController::Base.asset_host to a proc that took a single source argument (as detailed in my earlier post). People were still running into problems with asset hosting though, particularly while trying to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Fresh Cup - Notes from a recovering Microsoft addict</title>
		<link>http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/comment-page-1/#comment-404386</link>
		<dc:creator>A Fresh Cup - Notes from a recovering Microsoft addict</dc:creator>
		<pubDate>Sun, 23 Dec 2007 14:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/#comment-404386</guid>
		<description>[...] Rails 2.0.2 released, so what’s new? &#8211; Another take on the new features. [...]</description>
		<content:encoded><![CDATA[<p>[...] Rails 2.0.2 released, so what’s new? &#8211; Another take on the new features. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chu Yeow</title>
		<link>http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/comment-page-1/#comment-398540</link>
		<dc:creator>Chu Yeow</dc:creator>
		<pubDate>Wed, 19 Dec 2007 02:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/#comment-398540</guid>
		<description>I think part of your comment got cut off. If you could re-post I&#039;ll be able to help you figure out your problem.</description>
		<content:encoded><![CDATA[<p>I think part of your comment got cut off. If you could re-post I&#8217;ll be able to help you figure out your problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luis buenaventura</title>
		<link>http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/comment-page-1/#comment-398537</link>
		<dc:creator>luis buenaventura</dc:creator>
		<pubDate>Wed, 19 Dec 2007 02:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/12/17/rails-202-released-so-whats-new/#comment-398537</guid>
		<description>I was trying some of this out on our project and ended up with some really weird looking URLs :



In my development.rb:

ActionController::Base.asset_host = Proc.new { &#124;source&#124; &quot;http://asset#{rand(3)}.moomai.com&quot; }

So I tried using the traditional method, thusly:

ActionController::Base.asset_host = &quot;http://asset%d.moomai.com&quot;

And instead got this in my views:



Nice. Something&#039;s not right, I gather?</description>
		<content:encoded><![CDATA[<p>I was trying some of this out on our project and ended up with some really weird looking URLs :</p>
<p>In my development.rb:</p>
<p>ActionController::Base.asset_host = Proc.new { |source| &#8220;http://asset#{rand(3)}.moomai.com&#8221; }</p>
<p>So I tried using the traditional method, thusly:</p>
<p>ActionController::Base.asset_host = &#8220;http://asset%d.moomai.com&#8221;</p>
<p>And instead got this in my views:</p>
<p>Nice. Something&#8217;s not right, I gather?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
