<?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: Today&#8217;s Dispatch: Weaning ActionView off of content negotiation</title>
	<atom:link href="http://yehudakatz.com/2009/01/03/todays-dispatch-weaning-actionview-off-of-content-negotiation/feed/" rel="self" type="application/rss+xml" />
	<link>http://yehudakatz.com/2009/01/03/todays-dispatch-weaning-actionview-off-of-content-negotiation/</link>
	<description>Random Geek-Related Thoughts</description>
	<lastBuildDate>Sat, 20 Apr 2013 07:23:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jase</title>
		<link>http://yehudakatz.com/2009/01/03/todays-dispatch-weaning-actionview-off-of-content-negotiation/comment-page-1/#comment-22682</link>
		<dc:creator>Jase</dc:creator>
		<pubDate>Thu, 26 May 2011 01:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=177#comment-22682</guid>
		<description><![CDATA[Just out of interest, is there any plans to make a public API for this at some point. 

I ended up stumbling here, because I have a few pages on a project that need rendering with alternative markup, so I&#039;ve registered a MIME alias in config/initializers/mime_types.rb for HTML (bit like the iphone example they give).

What would be handy is the ability to fall back on rendering HTML mime templates when templates for my specific mime alias can not be found.

For now I&#039;m getting round this by omitting the MIME type from the template extension, but this is &quot;catch all&quot;, feels a bit dirty given it the catch all is global for all MIME types (and thus should be an issue).

(I probably one day will have a peek at the internals for this probably come up with a little short term hack until such API does arise... And on a unreleated note, excellent work here and all the other places with cleaning up Rails 3.x, I have to say I find the source far more palatable these days :D)]]></description>
		<content:encoded><![CDATA[<p>Just out of interest, is there any plans to make a public API for this at some point. </p>
<p>I ended up stumbling here, because I have a few pages on a project that need rendering with alternative markup, so I&#8217;ve registered a MIME alias in config/initializers/mime_types.rb for HTML (bit like the iphone example they give).</p>
<p>What would be handy is the ability to fall back on rendering HTML mime templates when templates for my specific mime alias can not be found.</p>
<p>For now I&#8217;m getting round this by omitting the MIME type from the template extension, but this is &#8220;catch all&#8221;, feels a bit dirty given it the catch all is global for all MIME types (and thus should be an issue).</p>
<p>(I probably one day will have a peek at the internals for this probably come up with a little short term hack until such API does arise&#8230; And on a unreleated note, excellent work here and all the other places with cleaning up Rails 3.x, I have to say I find the source far more palatable these days :D)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wycats</title>
		<link>http://yehudakatz.com/2009/01/03/todays-dispatch-weaning-actionview-off-of-content-negotiation/comment-page-1/#comment-15283</link>
		<dc:creator>wycats</dc:creator>
		<pubDate>Tue, 06 Jan 2009 06:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=177#comment-15283</guid>
		<description><![CDATA[The reason for the formats array is to support multiple, prioritized formats. So you can ask for :html, :xml, :all, and the first one of those will be used. There&#039;s no actual public API for this (yet?) -- it&#039;s triggered by Accept header handling when multiple mimes are provided.

I&#039;m interested in hearing what you had in mind.]]></description>
		<content:encoded><![CDATA[<p>The reason for the formats array is to support multiple, prioritized formats. So you can ask for :html, :xml, :all, and the first one of those will be used. There&#8217;s no actual public API for this (yet?) &#8212; it&#8217;s triggered by Accept header handling when multiple mimes are provided.</p>
<p>I&#8217;m interested in hearing what you had in mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liam Morley</title>
		<link>http://yehudakatz.com/2009/01/03/todays-dispatch-weaning-actionview-off-of-content-negotiation/comment-page-1/#comment-15277</link>
		<dc:creator>Liam Morley</dc:creator>
		<pubDate>Sun, 04 Jan 2009 19:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=177#comment-15277</guid>
		<description><![CDATA[Perhaps OT: This kind of reminds me of a hack I&#039;ve been using in Rails 2 that I know won&#039;t be supported in Rails 3. Whenever I&#039;ve wanted to reuse a template across multiple formats, say for example so it can be displayed for both regular html format as well as for mobile phones, I&#039;ve just named the template to *.rhtml, and voila, instant template reuse. I&#039;m sure everybody can agree that this is a terrible idea, and it&#039;s common knowledge that this will be deprecated in 3.0 (but if I&#039;m still working on this app in 5 months, somebody needs to shoot me).

I noticed in your commits that you&#039;ve modified format to be a formats array, which got me to thinking about supporting multiple formats with the same template. Will this be workable in Rails 3 (not as in my hackish example above, but with a cleaner, supported approach)?

And once again, thanks for giving some commentary on the commits, it&#039;s great to know where Rails 3 is going.]]></description>
		<content:encoded><![CDATA[<p>Perhaps OT: This kind of reminds me of a hack I&#8217;ve been using in Rails 2 that I know won&#8217;t be supported in Rails 3. Whenever I&#8217;ve wanted to reuse a template across multiple formats, say for example so it can be displayed for both regular html format as well as for mobile phones, I&#8217;ve just named the template to *.rhtml, and voila, instant template reuse. I&#8217;m sure everybody can agree that this is a terrible idea, and it&#8217;s common knowledge that this will be deprecated in 3.0 (but if I&#8217;m still working on this app in 5 months, somebody needs to shoot me).</p>
<p>I noticed in your commits that you&#8217;ve modified format to be a formats array, which got me to thinking about supporting multiple formats with the same template. Will this be workable in Rails 3 (not as in my hackish example above, but with a cleaner, supported approach)?</p>
<p>And once again, thanks for giving some commentary on the commits, it&#8217;s great to know where Rails 3 is going.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
