<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>cfis : Making Rails Better - Content Negotiation</title>
    <link>http://cfis.savagexi.com</link>
    <atom:link rel="self" type="application/rss+xml" href="http://cfis.savagexi.com/2007/08/06/making-rails-better-content-negotiation?format=rss"/>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Charlie Savage's Blog</description>
    <item>
      <title>Comment on Making Rails Better - Content Negotiation by Jim Cropcho</title>
      <description>&lt;p&gt;Charlie,&lt;/p&gt;

&lt;p&gt;Looks interesting! I passed this on to a developer who&amp;#8217;s working on a project with respond_to for FindHolmes.&lt;/p&gt;</description>
      <pubDate>Mon, 06 Aug 2007 16:00:22 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:9eb898c4-0d3c-47b0-bc3a-fee56b84b0e9</guid>
      <link>http://cfis.savagexi.com/2007/08/06/making-rails-better-content-negotiation#comment-4106</link>
    </item>
    <item>
      <title>Comment on Making Rails Better - Content Negotiation by dstar</title>
      <description>&lt;blockquote&gt;&lt;p&gt;The second problem is that the implementation mixes view logic into a controller. Why should a controller have knowledge, or care, about  how its results are rendered? I can&amp;#8217;t see any good reason for it.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Isn&amp;#8217;t the controller responsible for &lt;em&gt;selecting&lt;/em&gt; the view to be used? At least, that&amp;#8217;s my understanding of MVC, and from that perspective, the respond_to code seems perfectly reasonable, since the different formats are effectively different views (this does, of course, assume that the only change is the template used, and not the actual data returned)&lt;/p&gt;

&lt;p&gt;I won&amp;#8217;t, of course, try to defend the necessity of boilerplate code. That&amp;#8217;s just wrong.&lt;/p&gt;</description>
      <pubDate>Tue, 07 Aug 2007 08:38:57 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:4fbd6769-f32a-430d-98f5-131ff4529f21</guid>
      <link>http://cfis.savagexi.com/2007/08/06/making-rails-better-content-negotiation#comment-4118</link>
    </item>
    <item>
      <title>Comment on Making Rails Better - Content Negotiation by Charlie</title>
      <description>&lt;p&gt;Hi dstar,&lt;/p&gt;

&lt;p&gt;Yes and no - the logic for selecting a view is split between ActionController and ActionView.  On the controller side you specify a template or file and then the view side analyzes the existing templates and their extensions and picks the right one.&lt;/p&gt;

&lt;p&gt;To fit into Rails as it is, the plugin doesn&amp;#8217;t change the division of logic.&lt;/p&gt;</description>
      <pubDate>Tue, 07 Aug 2007 11:43:40 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:b03e48d8-1a88-491d-bd4a-cbee06403892</guid>
      <link>http://cfis.savagexi.com/2007/08/06/making-rails-better-content-negotiation#comment-4145</link>
    </item>
    <item>
      <title>Comment on Making Rails Better - Content Negotiation by Nicol&#225;s Sanguinetti</title>
      <description>&lt;p&gt;This seems to be great, I will totally play with this as soon as I get back to doing some rails work :)&lt;/p&gt;

&lt;p&gt;AFAIK, for what I&amp;#8217;ve been doing with edge, even if the core team is thinking on going this direction, it currently doesn&amp;#8217;t work this way, you still have to write the &lt;code&gt;respond_to&lt;/code&gt; blocks, though &lt;em&gt;I might be completely wrong&lt;/em&gt;.&lt;/p&gt;</description>
      <pubDate>Wed, 08 Aug 2007 23:35:19 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:1e3c3de0-add8-484d-8111-b64d6f1b739a</guid>
      <link>http://cfis.savagexi.com/2007/08/06/making-rails-better-content-negotiation#comment-4158</link>
    </item>
  </channel>
</rss>
