<?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: Ask the readers: How do you keep DRY when exposing your Rails apps to iGoogle?</title>
	<atom:link href="http://pathfindersoftware.com/2009/01/ask-the-readers-how-do-you-keep-dry-when-exposing-your-rails-apps-to-igoogle/feed/" rel="self" type="application/rss+xml" />
	<link>http://pathfindersoftware.com/2009/01/ask-the-readers-how-do-you-keep-dry-when-exposing-your-rails-apps-to-igoogle/</link>
	<description>The Fastest Way to Launch Successful Software</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:36:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark Thomas</title>
		<link>http://pathfindersoftware.com/2009/01/ask-the-readers-how-do-you-keep-dry-when-exposing-your-rails-apps-to-igoogle/#comment-9217</link>
		<dc:creator>Mark Thomas</dc:creator>
		<pubDate>Thu, 15 Jan 2009 03:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1358#comment-9217</guid>
		<description>I&#039;d define a custom MIME type in the Rails initializers:

Mime::Type.register_alias &quot;text/html&quot;, :igoogle

then in your respond_to block have a format.igoogle that renders the appropriate layout.

Store an igoogle flag in the session.

See http://www.locomotivation.com/blog/2008/06/29/redesign-your-site-in-place-using-rails-custom-mime-types.html for a similar setup.</description>
		<content:encoded><![CDATA[<p>I&#8217;d define a custom MIME type in the Rails initializers:</p>
<p>Mime::Type.register_alias &#8220;text/html&#8221;, :igoogle</p>
<p>then in your respond_to block have a format.igoogle that renders the appropriate layout.</p>
<p>Store an igoogle flag in the session.</p>
<p>See <a href="http://www.locomotivation.com/blog/2008/06/29/redesign-your-site-in-place-using-rails-custom-mime-types.html" rel="nofollow">http://www.locomotivation.com/blog/2008/06/29/redesign-your-site-in-place-using-rails-custom-mime-types.html</a> for a similar setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Hammond</title>
		<link>http://pathfindersoftware.com/2009/01/ask-the-readers-how-do-you-keep-dry-when-exposing-your-rails-apps-to-igoogle/#comment-9216</link>
		<dc:creator>Nathan Hammond</dc:creator>
		<pubDate>Tue, 13 Jan 2009 02:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1358#comment-9216</guid>
		<description>I&#039;d look into a combination approach of a JavaScript link rewriter and session-based handling. I&#039;m thinking along the lines of checking to see if your app is iframed (anti-clickjacking method) and then rewrite/set session vars accordingly.

A combination approach with CSRF-type protection (hidden secret in window.name) will give you more control if you actually need to use iframes in your application.</description>
		<content:encoded><![CDATA[<p>I&#8217;d look into a combination approach of a JavaScript link rewriter and session-based handling. I&#8217;m thinking along the lines of checking to see if your app is iframed (anti-clickjacking method) and then rewrite/set session vars accordingly.</p>
<p>A combination approach with CSRF-type protection (hidden secret in window.name) will give you more control if you actually need to use iframes in your application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antares Trader</title>
		<link>http://pathfindersoftware.com/2009/01/ask-the-readers-how-do-you-keep-dry-when-exposing-your-rails-apps-to-igoogle/#comment-9215</link>
		<dc:creator>Antares Trader</dc:creator>
		<pubDate>Mon, 12 Jan 2009 22:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1358#comment-9215</guid>
		<description>If I were doing this I would go with #2 and use a custom igoogle format in my url.  I know this got backported to rails from merb, but I&#039;m not sure on the details.  In Merb, I would add a custom format to my controllers (provides xml, json, igoogle), create a custom layout (application.igoogle.erb), and ensure that all my url&#039;s were generated and not hard coded strings (hard coding your url scheme is brittle).  There may even be some templates that would benefit from being customized for small layouts (foo/index.igoogle.erb)

Does anyone know how this currently works in Rails?  I&#039;m dreading the transition back for Rails 3.</description>
		<content:encoded><![CDATA[<p>If I were doing this I would go with #2 and use a custom igoogle format in my url.  I know this got backported to rails from merb, but I&#8217;m not sure on the details.  In Merb, I would add a custom format to my controllers (provides xml, json, igoogle), create a custom layout (application.igoogle.erb), and ensure that all my url&#8217;s were generated and not hard coded strings (hard coding your url scheme is brittle).  There may even be some templates that would benefit from being customized for small layouts (foo/index.igoogle.erb)</p>
<p>Does anyone know how this currently works in Rails?  I&#8217;m dreading the transition back for Rails 3.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (User agent is rejected)
Page Caching using memcached (User agent is rejected)

Served from: pathfindersoftware.com @ 2012-02-10 03:17:07 -->
