<?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: Supporting JSON callbacks in Rails</title>
	<atom:link href="http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/feed/" rel="self" type="application/rss+xml" />
	<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/</link>
	<description>Ruby makes Rails, Javascript makes Ajax, Dr Nic makes Magic</description>
	<lastBuildDate>Wed, 17 Mar 2010 04:35:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-119140</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Sun, 07 Sep 2008 08:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-119140</guid>
		<description>Sorry about that. When I get bored with it I&#039;ll take it down.</description>
		<content:encoded><![CDATA[<p>Sorry about that. When I get bored with it I&#8217;ll take it down.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: get rid of that god damn hire ad!</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-119064</link>
		<dc:creator>get rid of that god damn hire ad!</dc:creator>
		<pubDate>Sat, 06 Sep 2008 21:43:03 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-119064</guid>
		<description>i immediately blocked it with adblock cause anything that doesnt move is annoying</description>
		<content:encoded><![CDATA[<p>i immediately blocked it with adblock cause anything that doesnt move is annoying</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chu Yeow</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-30875</link>
		<dc:creator>Chu Yeow</dc:creator>
		<pubDate>Wed, 06 Jun 2007 09:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-30875</guid>
		<description>Nice writeup! I never thought of providing JSON callbacks before I read your entry.

I did notice Rails now provides a :callback option when you do a render :json (for anyone coming to this old post), e.g.:
  &lt;code&gt;render :json =&gt; {:name =&gt; &quot;David&quot;}.to_json, :callback =&gt; &#039;show&#039;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Nice writeup! I never thought of providing JSON callbacks before I read your entry.</p>
<p>I did notice Rails now provides a :callback option when you do a render :json (for anyone coming to this old post), e.g.:<br />
  <code>render :json =&gt; {:name =&gt; "David"}.to_json, :callback =&gt; 'show'</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-811</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Sat, 25 Nov 2006 04:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-811</guid>
		<description>@Tim - that sounds great!</description>
		<content:encoded><![CDATA[<p>@Tim &#8211; that sounds great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Lucas</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-810</link>
		<dc:creator>Tim Lucas</dc:creator>
		<pubDate>Fri, 24 Nov 2006 22:43:24 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-810</guid>
		<description>@Nic: ooooh yes, &lt;code&gt;render :json =&gt; @something.to_json&lt;/code&gt; is definitely up on the sexy factor. I&#039;ll be needing to add JSON-P to the project I&#039;m currently on, so I might in fact do that and wrap it up as a plugin.

Thanks Nic!</description>
		<content:encoded><![CDATA[<p>@Nic: ooooh yes, <code>render :json =&gt; @something.to_json</code> is definitely up on the sexy factor. I&#8217;ll be needing to add JSON-P to the project I&#8217;m currently on, so I might in fact do that and wrap it up as a plugin.</p>
<p>Thanks Nic!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-804</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Fri, 24 Nov 2006 06:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-804</guid>
		<description>@michael - the nice part about Tim&#039;s current render_json function is that it auto-detect&#039;s callback and variable parameters, instead of explicit options.</description>
		<content:encoded><![CDATA[<p>@michael &#8211; the nice part about Tim&#8217;s current render_json function is that it auto-detect&#8217;s callback and variable parameters, instead of explicit options.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Daines</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-803</link>
		<dc:creator>Michael Daines</dc:creator>
		<pubDate>Fri, 24 Nov 2006 06:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-803</guid>
		<description>&lt;code&gt;render :json =&gt; whatever, :callback =&gt; &quot;myFunction&quot;&lt;/code&gt; would be even nicer.</description>
		<content:encoded><![CDATA[<p><code>render :json =&gt; whatever, :callback =&gt; "myFunction"</code> would be even nicer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-802</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Fri, 24 Nov 2006 05:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-802</guid>
		<description>@Tim - ahh thanks for the link. That solution looks really thorough. It might be more Rails-Fu-ish if &lt;code&gt;render_json&lt;/code&gt; became &lt;code&gt;render(:json =&gt; json, options)&lt;/code&gt;, but that could be me being anal.

All in all, wonderful!</description>
		<content:encoded><![CDATA[<p>@Tim &#8211; ahh thanks for the link. That solution looks really thorough. It might be more Rails-Fu-ish if <code>render_json</code> became <code>render(:json => json, options)</code>, but that could be me being anal.</p>
<p>All in all, wonderful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Lucas</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-799</link>
		<dc:creator>Tim Lucas</dc:creator>
		<pubDate>Fri, 24 Nov 2006 00:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-799</guid>
		<description>I just &lt;a href=&quot;http://sitepoint.com/blogs/2006/10/05/json-p-output-with-rails&quot; rel=&quot;nofollow&quot;&gt;created a render_json method&lt;/a&gt; in ApplicationController to perform the same thing.... no need for MinusR.</description>
		<content:encoded><![CDATA[<p>I just <a href="http://sitepoint.com/blogs/2006/10/05/json-p-output-with-rails" rel="nofollow">created a render_json method</a> in ApplicationController to perform the same thing&#8230;. no need for MinusR.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr eel</title>
		<link>http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/comment-page-1/#comment-797</link>
		<dc:creator>Mr eel</dc:creator>
		<pubDate>Thu, 23 Nov 2006 23:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2006/11/23/supporting-json-in-rails-or-anywhere/#comment-797</guid>
		<description>Nice!

I&#039;ve never even thought about callbacks when consuming JSON. Nice example mate :)</description>
		<content:encoded><![CDATA[<p>Nice!</p>
<p>I&#8217;ve never even thought about callbacks when consuming JSON. Nice example mate <img src='http://drnicwilliams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
