<?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: Let&#8217;s get meta: missing method</title>
	<atom:link href="http://www.sitepoint.com/blogs/2008/07/11/lets-get-meta-missing-method/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2008/07/11/lets-get-meta-missing-method/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Mon, 23 Nov 2009 01:39:24 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: madpilot</title>
		<link>http://www.sitepoint.com/blogs/2008/07/11/lets-get-meta-missing-method/comment-page-1/#comment-759328</link>
		<dc:creator>madpilot</dc:creator>
		<pubDate>Sat, 12 Jul 2008 01:33:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=2628#comment-759328</guid>
		<description>Neil: The example is a little contrived, but it does provide convenience. But an example of where it becomes powerful in Rails is the has_many and belongs_to associations.

If you add has_many :employees to a Company model, Rails knows to respond to company.employees and company.employees=

Another example is the ruby Flickr API - it uses method_missing to convert the API endpoints to Ruby methods.</description>
		<content:encoded><![CDATA[<p>Neil: The example is a little contrived, but it does provide convenience. But an example of where it becomes powerful in Rails is the has_many and belongs_to associations.</p>
<p>If you add has_many :employees to a Company model, Rails knows to respond to company.employees and company.employees=</p>
<p>Another example is the ruby Flickr API &#8211; it uses method_missing to convert the API endpoints to Ruby methods.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dean C</title>
		<link>http://www.sitepoint.com/blogs/2008/07/11/lets-get-meta-missing-method/comment-page-1/#comment-759232</link>
		<dc:creator>Dean C</dc:creator>
		<pubDate>Fri, 11 Jul 2008 18:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=2628#comment-759232</guid>
		<description>Just a heads up to those reading the comments. You can do the same thing using PHP&#039;s __call method within any class. http://uk2.php.net/__call</description>
		<content:encoded><![CDATA[<p>Just a heads up to those reading the comments. You can do the same thing using PHP&#8217;s __call method within any class. <a href="http://uk2.php.net/__call" rel="nofollow">http://uk2.php.net/__call</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Mosafi</title>
		<link>http://www.sitepoint.com/blogs/2008/07/11/lets-get-meta-missing-method/comment-page-1/#comment-759132</link>
		<dc:creator>Neil Mosafi</dc:creator>
		<pubDate>Fri, 11 Jul 2008 14:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=2628#comment-759132</guid>
		<description>This sounds like it should be powerful, but I&#039;m struggling to understand why!  Why would I not just call m.find(&#039;name&#039;, &#039;madpilot&#039;) like you did in the first example?  How does having a missing method help me as a user of your API?</description>
		<content:encoded><![CDATA[<p>This sounds like it should be powerful, but I&#8217;m struggling to understand why!  Why would I not just call m.find(&#8217;name&#8217;, &#8216;madpilot&#8217;) like you did in the first example?  How does having a missing method help me as a user of your API?</p>]]></content:encoded>
	</item>
</channel>
</rss>
