<?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: be_accepted, be_created, be_forbidden, be_found</title>
	<atom:link href="http://labnotes.org/2007/08/29/be_accepted-be_created-be_forbidden-be_found/feed/" rel="self" type="application/rss+xml" />
	<link>http://labnotes.org/2007/08/29/be_accepted-be_created-be_forbidden-be_found/</link>
	<description></description>
	<lastBuildDate>Sun, 15 Jan 2012 21:29:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: dave</title>
		<link>http://labnotes.org/2007/08/29/be_accepted-be_created-be_forbidden-be_found/comment-page-1/#comment-144567</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Wed, 14 Sep 2011 23:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2007/08/29/be_accepted-be_created-be_forbidden-be_found/#comment-144567</guid>
		<description>Following the internal re-organization of Rails 3, use this code instead:

module ActionDispatch
  class Response
    Rack::Utils::SYMBOL_TO_STATUS_CODE.each do &#124;symbol, code&#124;
      define_method(&quot;#{symbol}?&quot;) { self.code == code.to_s } unless instance_methods.include?(&quot;#{symbol}?&quot;)
    end
  end
end</description>
		<content:encoded><![CDATA[<p>Following the internal re-organization of Rails 3, use this code instead:</p>
<p>module ActionDispatch<br />
  class Response<br />
    Rack::Utils::SYMBOL_TO_STATUS_CODE.each do |symbol, code|<br />
      define_method(&#8220;#{symbol}?&#8221;) { self.code == code.to_s } unless instance_methods.include?(&#8220;#{symbol}?&#8221;)<br />
    end<br />
  end<br />
end</p>
]]></content:encoded>
	</item>
</channel>
</rss>

