<?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: Forget About Little Old CGI</title>
	<atom:link href="http://shifteleven.com/articles/2008/03/17/forget-about-little-old-cgi/feed" rel="self" type="application/rss+xml" />
	<link>http://shifteleven.com/articles/2008/03/17/forget-about-little-old-cgi</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 05 Mar 2010 14:53:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: K. Adam Christensen</title>
		<link>http://shifteleven.com/articles/2008/03/17/forget-about-little-old-cgi/comment-page-1#comment-151</link>
		<dc:creator>K. Adam Christensen</dc:creator>
		<pubDate>Wed, 17 Sep 2008 00:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=41#comment-151</guid>
		<description>Hi,

well, from what I can gather, there are two reasons that this isn&#039;t working for you.

1.  For the Reloader to work, you need to have the code that needs to be reloaded to be in a separate file.  So just move HelloWorld to hello_world.rb

2.  At the end of Rack::Builder.new, add the to_app() method.


app = Rack::Builder.new do
  use Rack::CommonLogger
  use Rack::ShowExceptions
  use Rack::Reloader
  use Rack::ShowStatus
  use Rack::Lint
  run HelloWorld.new
end.to_app


I discovered this through the &quot;mailing list&quot;:http://groups.google.com/group/rack-devel/browse_thread/thread/11681e8ce6b58cac</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>well, from what I can gather, there are two reasons that this isn&#8217;t working for you.</p>
<p>1.  For the Reloader to work, you need to have the code that needs to be reloaded to be in a separate file.  So just move HelloWorld to hello_world.rb</p>
<p>2.  At the end of Rack::Builder.new, add the to_app() method.</p>
<p>app = Rack::Builder.new do<br />
  use Rack::CommonLogger<br />
  use Rack::ShowExceptions<br />
  use Rack::Reloader<br />
  use Rack::ShowStatus<br />
  use Rack::Lint<br />
  run HelloWorld.new<br />
end.to_app</p>
<p>I discovered this through the &#8220;mailing list&#8221;:http://groups.google.com/group/rack-devel/browse_thread/thread/11681e8ce6b58cac</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ts</title>
		<link>http://shifteleven.com/articles/2008/03/17/forget-about-little-old-cgi/comment-page-1#comment-146</link>
		<dc:creator>ts</dc:creator>
		<pubDate>Wed, 10 Sep 2008 06:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=41#comment-146</guid>
		<description>hi, i wonder how Rack::Reloader works? My simple code below:

================================================
%w{rubygems rack thin}.each {&#124;dep&#124; require dep}

class HelloWorld
	def call(env)
		[200,{&quot;Content-Type&quot; =&gt; &quot;text/html&quot;},&quot;hello world!!&quot;]
	end
end

app = Rack::Builder.new do
  use Rack::CommonLogger
  use Rack::ShowExceptions
  use Rack::Reloader
  use Rack::ShowStatus
  use Rack::Lint
  run HelloWorld.new
end

Rack::Handler::Thin.run(app, :Port =&gt; 3000)

============================================

if i change the &quot;hello world!!!&quot; string to something else. A refresh on the web browser doesnt works. I wonder am i missing something?</description>
		<content:encoded><![CDATA[<p>hi, i wonder how Rack::Reloader works? My simple code below:</p>
<p>================================================<br />
%w{rubygems rack thin}.each {|dep| require dep}</p>
<p>class HelloWorld<br />
	def call(env)<br />
		[200,{"Content-Type" =&gt; "text/html"},"hello world!!"]<br />
	end<br />
end</p>
<p>app = Rack::Builder.new do<br />
  use Rack::CommonLogger<br />
  use Rack::ShowExceptions<br />
  use Rack::Reloader<br />
  use Rack::ShowStatus<br />
  use Rack::Lint<br />
  run HelloWorld.new<br />
end</p>
<p>Rack::Handler::Thin.run(app, :Port =&gt; 3000)</p>
<p>============================================</p>
<p>if i change the &#8220;hello world!!!&#8221; string to something else. A refresh on the web browser doesnt works. I wonder am i missing something?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
