<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dare to Dream? &#187; Rails</title>
	<atom:link href="http://www.makuchaku.in/blog/category/rails/feed" rel="self" type="application/rss+xml" />
	<link>http://www.makuchaku.in/blog</link>
	<description>Good judgment comes from experience; Experience comes from bad judgment.</description>
	<lastBuildDate>Sun, 02 Oct 2011 19:29:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Block magic for Rails helpers</title>
		<link>http://www.makuchaku.in/blog/block-magic-for-rails-helpers</link>
		<comments>http://www.makuchaku.in/blog/block-magic-for-rails-helpers#comments</comments>
		<pubDate>Wed, 13 Oct 2010 20:48:03 +0000</pubDate>
		<dc:creator>Mayank Jain (makuchaku)</dc:creator>
				<category><![CDATA[for-adomado]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.makuchaku.in/blog/?p=988</guid>
		<description><![CDATA[Ever wondered how can you have something like this &#60;% some_helper do %&#62; Some text here &#60;% end %&#62; Well, here how it is&#8230; def some_helper(&#038;block) content = capture(&#038;block) concat("this comes before the block", block.binding) concat(content, block.binding) # adds "Some text here" to the view concat("this comes after the block", block.binding) end Neat! Isn&#8217;t it [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[ 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/block-magic-for-rails-helpers&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span><p>Ever wondered how can you have something like this</p>
<blockquote>
<pre>&lt;% some_helper do %&gt;
  Some text here
&lt;% end %&gt;</pre>
</blockquote>
<p>Well, here how it is&#8230;</p>
<blockquote>
<pre>
def some_helper(&#038;block)
    content = capture(&#038;block)
    concat("this comes before the block", block.binding)
    concat(content, block.binding) # adds "Some text here" to the view
    concat("this comes after the block", block.binding)
end
</pre>
</blockquote>
<p>Neat! Isn&#8217;t it <img src='http://www.makuchaku.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/block-magic-for-rails-helpers&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.makuchaku.in/blog/block-magic-for-rails-helpers/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting around the dreaded Operation Aborted error in Internet Explorer with Ruby on Rails</title>
		<link>http://www.makuchaku.in/blog/getting-around-the-dreaded-operation-aborted-error-in-internet-explorer-with-ruby-on-rails</link>
		<comments>http://www.makuchaku.in/blog/getting-around-the-dreaded-operation-aborted-error-in-internet-explorer-with-ruby-on-rails#comments</comments>
		<pubDate>Wed, 16 Jun 2010 17:17:34 +0000</pubDate>
		<dc:creator>Mayank Jain (makuchaku)</dc:creator>
				<category><![CDATA[AdoMado]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[for-adomado]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.makuchaku.in/blog/?p=910</guid>
		<description><![CDATA[If you have ever experienced this&#8230; &#8230;you know how painful it is to debug and rectify. This error was so common that Microsoft created a knowledge base (KB927917) article for this. It even has a dedicated explanation at the IE Blog. The error basically is &#8211; &#8220;HTML Parsing Error: Unable to modify the parent container [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[ 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/getting-around-the-dreaded-operation-aborted-error-in-internet-explorer-with-ruby-on-rails&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span><p>If you have ever experienced this&#8230;</p>
<p><img src="http://ieblog.members.winisp.net/images/ie7_operation_aborted.png" alt="" width="579" height="354" /></p>
<p>&#8230;you know how painful it is to debug and rectify.</p>
<p>This error was so common that Microsoft created a knowledge base (<code><a href="http://support.microsoft.com/kb/927917/en-us" target="_blank">KB927917</a>)</code> article for this. It even has a dedicated explanation at the <a href="http://blogs.msdn.com/b/ie/archive/2008/04/23/what-happened-to-operation-aborted.aspx" target="_blank">IE Blog</a>. The error basically is &#8211; &#8220;HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)&#8221;.</p>
<p>While building the Social sharing plugins for <a href="http://adomado.com">AdoMado</a>, we were facing similar problems. Anywhere FB share, Orkut share or Digg buttons were being used, IE was complaining of exactly the same problem. Since social share plugins are the backbone of our community building process, fixing this ASAP was high on my agenda.</p>
<p>NOTE &#8211; There was no such problem on any version of Firefox or Chrome.</p>
<p>If you notice the IE blog entry, they mention that</p>
<blockquote><p>Moving the location of your script block to a child of the body (this usually solves most problems, while allowing the most flexibility in terms of scenarios).</p></blockquote>
<p>can be a possible solution.</p>
<p>Cool! But how do we reach here? My javascripts were spread all over the place!</p>
<p>First things first&#8230; I refactored the code in such a way that all possible usage of problem causing scripts was moved to one single partial. Now error was originating from only one location. The fix, as mentioned on the IE blog &#8211; was then straight forward.</p>
<p><strong>In your layout, just before closing the BODY tag, use the &#8220;yield&#8221; block to render any such javascript &#8211; and render all such scripts into this &#8220;yield&#8221; block.</strong></p>
<p>Here are some screen captures from our codebase&#8230;</p>
<p><a href="http://www.makuchaku.in/blog/wp-content/uploads/2010/06/screenshot_002.png"><img class="alignnone size-full wp-image-911" title="yield" src="http://www.makuchaku.in/blog/wp-content/uploads/2010/06/screenshot_002.png" alt="" width="432" height="235" /></a><br />
Notice the &#8220;yield :delayed_loading&#8221; block&#8230;</p>
<p><a href="http://www.makuchaku.in/blog/wp-content/uploads/2010/06/screenshot_003.png"><img class="alignnone size-full wp-image-912" title="delayed_loading" src="http://www.makuchaku.in/blog/wp-content/uploads/2010/06/screenshot_003.png" alt="" width="455" height="92" /></a><br />
Yield&#8217;ing to delayed_loading block.</p>
<p>If you browse over to our offer &#8211; <a href="http://adomado.com/offers/show/3-free_sms-send_free_sms?p=840d2f20-d7a3-11de-9518-12313902b1e7" target="_blank">Send Ad Free SMS</a> using IE, you will notice that you see no such error. All the social share plugins render in harmony.<br />
I&#8217;ve even thrown in a little jQuery fadeIn magic <img src='http://www.makuchaku.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/getting-around-the-dreaded-operation-aborted-error-in-internet-explorer-with-ruby-on-rails&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.makuchaku.in/blog/getting-around-the-dreaded-operation-aborted-error-in-internet-explorer-with-ruby-on-rails/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning from the best!</title>
		<link>http://www.makuchaku.in/blog/learning-from-the-best</link>
		<comments>http://www.makuchaku.in/blog/learning-from-the-best#comments</comments>
		<pubDate>Fri, 12 Feb 2010 04:58:47 +0000</pubDate>
		<dc:creator>Mayank Jain (makuchaku)</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.makuchaku.in/blog/?p=830</guid>
		<description><![CDATA[Just bought &#8220;Programming Ruby 1.9&#8221; from Flipkart. From For Blog When I joined IBM ISS UI team and my tech lead suggested that we should start doing things in Rails- and I was prompt enough to pop up a suggestion &#8211; &#8220;that why don&#8217;t we use Python based web app frameworks Django or Turbo Gears [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[ 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/learning-from-the-best&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span><p>Just bought &#8220;<a href="http://www.pragprog.com/titles/ruby3/programming-ruby-1-9" target="_blank">Programming Ruby 1.9</a>&#8221; from <a href="http://www.flipkart.com/programming-ruby-dave-thomas-chad/1934356085-o2x3fjgnvc" target="_blank">Flipkart</a>.</p>
<table style="width: auto;">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/RThH0Xbmw7BjgWz0a62Iag?feat=embedwebsite"><img src="http://lh6.ggpht.com/_RWv_ppZ2Nxo/S3TcGzgiP8I/AAAAAAAAAXY/M7thSJxGPC4/s400/ruby_book.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/makuchaku.in/ForBlog?feat=embedwebsite">For Blog</a></td>
</tr>
</tbody>
</table>
<p>When I joined IBM ISS UI team and my tech lead suggested that we should start doing things in Rails- and I was prompt enough to pop up a suggestion &#8211; &#8220;that why don&#8217;t we use <a href="http://wiki.python.org/moin/WebFrameworks" target="_blank">Python based web app frameworks</a> Django or Turbo Gears (as I had some python experience)&#8221;.</p>
<p>All he replied was &#8211; &#8220;when we are looking for the best framework, why not use the one everyone&#8217;s trying to become&#8221;.</p>
<p>And hence, the awesome journey to Rails began.<br />
Understanding Ruby better will make it so much more fun.</p>
<p>PS: No disrespect meant to the awesome work being put in by the Python community. Python rocks! So does Ruby!</p>
 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/learning-from-the-best&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.makuchaku.in/blog/learning-from-the-best/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An IDE which suggests best code practices, shows a diff and lets you selectively apply&#8230;</title>
		<link>http://www.makuchaku.in/blog/an-ide-which-suggests-best-code-practices-shows-a-diff-and-lets-you-selectively-apply</link>
		<comments>http://www.makuchaku.in/blog/an-ide-which-suggests-best-code-practices-shows-a-diff-and-lets-you-selectively-apply#comments</comments>
		<pubDate>Mon, 19 Oct 2009 08:28:08 +0000</pubDate>
		<dc:creator>Mayank Jain (makuchaku)</dc:creator>
				<category><![CDATA[IDE]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[netbeans]]></category>

		<guid isPermaLink="false">http://www.makuchaku.in/blog/?p=801</guid>
		<description><![CDATA[No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[ 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/an-ide-which-suggests-best-code-practices-shows-a-diff-and-lets-you-selectively-apply&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span><p style="text-align: center;"><a href="http://www.netbeans.org/downloads/indexB.html"><img class="aligncenter" src="http://www.netbeans.org/images/v6/community/netbeans-banner.jpg" border="0" alt="" /></a></p>
<div id="attachment_802" class="wp-caption alignleft" style="width: 958px"><a href="http://www.makuchaku.in/blog/wp-content/uploads/2009/10/nb.png"><img class="size-full wp-image-802" title="NetBeans code modification suggestion" src="http://www.makuchaku.in/blog/wp-content/uploads/2009/10/nb.png" alt="NetBeans code modification suggestion" width="948" height="585" /></a><p class="wp-caption-text">NetBeans code modification suggestion</p></div>
 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/an-ide-which-suggests-best-code-practices-shows-a-diff-and-lets-you-selectively-apply&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.makuchaku.in/blog/an-ide-which-suggests-best-code-practices-shows-a-diff-and-lets-you-selectively-apply/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmer Happiness &#8211; onroad to Rails3</title>
		<link>http://www.makuchaku.in/blog/programmer-happiness-onroad-to-rails3</link>
		<comments>http://www.makuchaku.in/blog/programmer-happiness-onroad-to-rails3#comments</comments>
		<pubDate>Thu, 08 Oct 2009 14:25:50 +0000</pubDate>
		<dc:creator>Mayank Jain (makuchaku)</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://www.makuchaku.in/blog/?p=795</guid>
		<description><![CDATA[Medium: www.vimeo.com Link: www.vimeo.com Rails 3 Update by Yehuda Katz from Wind City Rails 2009 You just can&#8217;t ignore his style of explaining things! No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[ 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/programmer-happiness-onroad-to-rails3&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span><p><object type="application/x-shockwave-flash" width="400" height="300" data="http://www.vimeo.com/moogaloop.swf?clip_id=6703956&amp;server=vimeo.com"><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=6703956&amp;server=vimeo.com" /><param name="quality" value="high" />Medium: www.vimeo.com</object>
<br />Link: <a href="http://www.vimeo.com/6703956">www.vimeo.com</a></p>
<p><a href="http://vimeo.com/6703956">Rails 3 Update by Yehuda Katz</a> from <a href="http://windycityrails.org/videos">Wind City Rails 2009</a></p>
<p>You just can&#8217;t ignore his style of explaining things! <img src='http://www.makuchaku.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/programmer-happiness-onroad-to-rails3&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.makuchaku.in/blog/programmer-happiness-onroad-to-rails3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Authentication using Google Accounts for your Rails App</title>
		<link>http://www.makuchaku.in/blog/authentication-using-google-accounts-for-your-rails-app</link>
		<comments>http://www.makuchaku.in/blog/authentication-using-google-accounts-for-your-rails-app#comments</comments>
		<pubDate>Sun, 27 Sep 2009 20:02:15 +0000</pubDate>
		<dc:creator>Mayank Jain (makuchaku)</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[AuthSub]]></category>

		<guid isPermaLink="false">http://www.makuchaku.in/blog/?p=771</guid>
		<description><![CDATA[The methodology is very simple. Redirect the user to grant access to your app for a particular Google service. Once access is granted, use the authentication token to retrieve information related to the user. I demonstrate this with a very simple &#38; idiotic Sinatra app which actually does nothing intelligent &#8211; apart from just outputting [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[ 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/authentication-using-google-accounts-for-your-rails-app&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span><p>The methodology is very simple.</p>
<ol>
<li>Redirect the user to grant access to your app for a particular Google service.</li>
<li>Once access is granted, use the authentication token to retrieve information related to the user.</li>
</ol>
<p>I demonstrate this with a very simple &amp; idiotic Sinatra app which actually does nothing intelligent &#8211; apart from just outputting first 10 contacts from the user&#8217;s address book.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">require</span> <span class="st0">&#8216;rubygems&#8217;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">require</span> <span class="st0">&#8216;sinatra&#8217;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">require</span> <span class="st0">&quot;gdata&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">client = <span class="re2">GData::Client::Contacts</span>.<span class="me1">new</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">get <span class="st0">&quot;/&quot;</span> <span class="kw1">do</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; next_url = <span class="st0">&#8216;http://127.0.0.1:4567/app&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; secure = <span class="kw2">false</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; session = <span class="kw2">true</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; authsub_link = client.<span class="me1">authsub_url</span><span class="br0">&#40;</span>next_url, secure, session, <span class="kw2">nil</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; redirect<span class="br0">&#40;</span>authsub_link<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">end</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2">get <span class="st0">&#8216;/app&#8217;</span> <span class="kw1">do</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; pp request.<span class="me1">env</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; client.<span class="me1">authsub_token</span> = request.<span class="me1">env</span><span class="br0">&#91;</span><span class="st0">&quot;rack.request.query_hash&quot;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&quot;token&quot;</span><span class="br0">&#93;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; client.<span class="me1">authsub_token</span> = client.<span class="me1">auth_handler</span>.<span class="me1">upgrade</span><span class="br0">&#40;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; contacts = client.<span class="me1">get</span><span class="br0">&#40;</span><span class="st0">&quot;http://www.google.com/m8/feeds/contacts/default/full?max-results=5&quot;</span><span class="br0">&#41;</span>.<span class="me1">to_xml</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="kw3">puts</span> contacts</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">end</span></div>
</li>
</ol>
</div>
<p>More information about using <a href="http://code.google.com/p/gdata-ruby-util/">GData</a> is available at <a href="http://code.google.com/apis/gdata/articles/gdata_on_rails.html">http://code.google.com/apis/gdata/articles/gdata_on_rails.html</a></p>
<p>Example scenarios this can be used?</p>
<ul>
<li>Allowing people to login into your app with their existing google account.</li>
<li>Accessing user data with user&#8217;s permission</li>
<li>Signing up for your app using Google account information</li>
</ul>
<p>Happy Hacking!</p>
 
<span class = "" style = "height: 40px;  "><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.makuchaku.in/blog/authentication-using-google-accounts-for-your-rails-app&layout=button_count&send=false&show_faces=false&width=100&action=like&colorscheme=light&font=" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:40px"></iframe></span>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.makuchaku.in/blog/authentication-using-google-accounts-for-your-rails-app/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

