<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Ruby on Rails Notes &#187; metal</title> <atom:link href="http://railsnotes.com/tag/metal/feed/" rel="self" type="application/rss+xml" /><link>http://railsnotes.com</link> <description>A code-heavy brain dump of stuff I come across working on Ruby on Rails projects including Models, ActiveRecord, Views, Controllers, RESTful rails, deployment, server stuff, etc.</description> <lastBuildDate>Sun, 29 Aug 2010 23:45:16 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Rails Metal Screencast by RailsCasts</title><link>http://railsnotes.com/102-rails-metal-screencast-by-railscasts/</link> <comments>http://railsnotes.com/102-rails-metal-screencast-by-railscasts/#comments</comments> <pubDate>Sun, 08 Mar 2009 23:13:33 +0000</pubDate> <dc:creator>Melvin Ram</dc:creator> <category><![CDATA[Other]]></category> <category><![CDATA[2.3]]></category> <category><![CDATA[metal]]></category> <category><![CDATA[middleware]]></category> <category><![CDATA[rack]]></category><guid
isPermaLink="false">http://railsnotes.wordpress.com/?p=102</guid> <description><![CDATA[I just got done watching the screencast on Rails Metal by RailsCasts and I took some notes: Rails Casts Notes: #150 Rails Metal Bypass rails routing Simple request that happens frequently. to generate: ruby script/generate metal name_of_metal stored under app/metal/ in the generated code, the self.call(env) method should return an array. response code ex. 404 [...]]]></description> <content:encoded><![CDATA[<p></p><p>I just got done watching the <a
href="http://railscasts.com/episodes/150-rails-metal">screencast on Rails Metal by RailsCasts</a> and I took some notes:</p><p><strong>Rails Casts Notes: #150 Rails Metal</strong></p><ul><li>Bypass rails routing</li><li>Simple request that happens frequently.</li><li>to generate: ruby script/generate metal name_of_metal</li><li>stored under app/metal/</li><li>in the generated code, the self.call(env) method should return an array.<ol><li>response code ex. 404 or 200</li><li>hash of header options</li><li>Body content</li></ol></li><li>Won&#8217;t be recorded in log file since it bypass that as well.</li><li>When creating/changing a metal, you need to restart server</li><li>If there is a conflict between Rails routing and metal, metal wins because it gets the request before rails has had a chance to process it.</li><li>&#8220;ab -n 100 http://127.0.0.1:3000/processes/list&#8221; will run a benchmark that you can use to compare performance (just replace the url of page)</li></ul> ]]></content:encoded> <wfw:commentRss>http://railsnotes.com/102-rails-metal-screencast-by-railscasts/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 6/16 queries in 0.034 seconds using disk

Served from: railsnotes.com @ 2010-09-10 05:11:55 -->