<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ajax on Rails</title>
	<atom:link href="http://ajaxonrails.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ajaxonrails.wordpress.com</link>
	<description>geeks redefined</description>
	<lastBuildDate>Thu, 29 Mar 2007 03:16:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ajaxonrails.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ajax on Rails</title>
		<link>http://ajaxonrails.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ajaxonrails.wordpress.com/osd.xml" title="Ajax on Rails" />
	<atom:link rel='hub' href='http://ajaxonrails.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Simple Captcha Released</title>
		<link>http://ajaxonrails.wordpress.com/2007/02/07/simple-captcha-released/</link>
		<comments>http://ajaxonrails.wordpress.com/2007/02/07/simple-captcha-released/#comments</comments>
		<pubDate>Wed, 07 Feb 2007 01:38:04 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[captcha]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rubyonrails]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2007/02/07/simple-captcha-released/</guid>
		<description><![CDATA[Hey guys, finally i have released the captcha plugin for public usage. Check it out here<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=37&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey guys, finally i have released the captcha plugin for public usage.</p>
<p>Check it out <a href="http://expressica.com/2007/02/06/simple-captcha-released-the-captcha-for-rails-applications/"> <b>here</b></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=37&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2007/02/07/simple-captcha-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>
	</item>
		<item>
		<title>Blog moved to Expressica.com &#8212; releasing the captcha plugin with multiple styles of clear images, with random string text</title>
		<link>http://ajaxonrails.wordpress.com/2007/02/02/expressica/</link>
		<comments>http://ajaxonrails.wordpress.com/2007/02/02/expressica/#comments</comments>
		<pubDate>Fri, 02 Feb 2007 06:35:04 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[captcha]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[rubyonrails]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2007/02/02/expressica/</guid>
		<description><![CDATA[Hi Everbody !! I am moving this blog to Expressica and i would like to inform all the readers to update their feeds and bookmarks to the new url http://expressica.com . On my new blog i am going to release a captcha plugin which is really very simple to implement. This plugin provides the functionality [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=36&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi Everbody !!</p>
<p>I am moving this blog to <a href="http://expressica.com" title="expressica by sur" target="_blank"><strong>Expressica </strong></a></p>
<p>and i would like to inform all the readers to update their feeds and bookmarks to the new url <strong>http://expressica.com </strong>.</p>
<p>On my new blog i am going to release a captcha plugin which is really very simple to implement. This plugin provides the functionality to add captcha based authentication in your rails applications.</p>
<p>It mainly features&#8230;</p>
<ul>
<li>Controller based captcha</li>
<li>Model based captcha</li>
<li>and the feature i like the most is multiple image styles</li>
</ul>
<p>You can simply pass the name of the image style from the view and captcha will throw the random strings as the selected style of image. The images are clear enough to read by human and blurred and manipulated enough to protect from bots.<br />
Example of the images &#8230;</p>
<ul>
<li><strong>simply_red</strong> <img src="http://expressica.com/wp-content/images/simply_red.jpg" /></li>
<li><strong>simply_green</strong> <img src="http://expressica.com/wp-content/images/simply_green.jpg" /></li>
<li><strong>simply_blue</strong> <img src="http://expressica.com/wp-content/images/simply_blue.jpg" /></li>
<li><strong>embosed_silver</strong> <img src="http://expressica.com/wp-content/images/embosed_silver.jpg" /></li>
<li><strong>distorted_black</strong> <img src="http://expressica.com/wp-content/images/distorted_black.jpg" /></li>
<li><strong>all_black</strong> <img src="http://expressica.com/wp-content/images/all_black.jpg" /></li>
<li><strong>charcoal_grey</strong> <img src="http://expressica.com/wp-content/images/charcoal_grey.jpg" /></li>
<li><strong>almost_invisible</strong> <img src="http://expressica.com/wp-content/images/almost_invisible.jpg" /></li>
</ul>
<p>Comments/Queries are welcome on this idea.</p>
<p>I will release this plugin very soon on <a href="http://expressica.com" title="expressica by sur"><strong>Expressica.com</strong></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=36&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2007/02/02/expressica/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>

		<media:content url="http://expressica.com/wp-content/images/simply_red.jpg" medium="image" />

		<media:content url="http://expressica.com/wp-content/images/simply_green.jpg" medium="image" />

		<media:content url="http://expressica.com/wp-content/images/simply_blue.jpg" medium="image" />

		<media:content url="http://expressica.com/wp-content/images/embosed_silver.jpg" medium="image" />

		<media:content url="http://expressica.com/wp-content/images/distorted_black.jpg" medium="image" />

		<media:content url="http://expressica.com/wp-content/images/all_black.jpg" medium="image" />

		<media:content url="http://expressica.com/wp-content/images/charcoal_grey.jpg" medium="image" />

		<media:content url="http://expressica.com/wp-content/images/almost_invisible.jpg" medium="image" />
	</item>
		<item>
		<title>Nice Experience !!</title>
		<link>http://ajaxonrails.wordpress.com/2006/12/11/nice-experience/</link>
		<comments>http://ajaxonrails.wordpress.com/2006/12/11/nice-experience/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 06:17:04 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[barcamp]]></category>
		<category><![CDATA[barcampdelhi2]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/12/11/nice-experience/</guid>
		<description><![CDATA[My first Barcamp was really a nice experience. Enjoyed some interesting sessions and some of them were riling me out. But in all i can say it was good to be there and i will try to attend the all of them in the future.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=35&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My first <a href="http://barcamp.org/BarCampDelhi-2"><b>Barcamp</b></a> was really a nice experience. Enjoyed some interesting sessions and some of them were riling me out.<br />
But in all i can say it was good to be there and i will try to attend the all of them in the future.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=35&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2006/12/11/nice-experience/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>
	</item>
		<item>
		<title>Going to BarcampDelhi-2</title>
		<link>http://ajaxonrails.wordpress.com/2006/12/08/going-to-barcampdelhi-2/</link>
		<comments>http://ajaxonrails.wordpress.com/2006/12/08/going-to-barcampdelhi-2/#comments</comments>
		<pubDate>Fri, 08 Dec 2006 11:18:22 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[barcamp]]></category>
		<category><![CDATA[barcampdelhi-2]]></category>
		<category><![CDATA[barcampdelhi2]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/12/08/going-to-barcampdelhi-2/</guid>
		<description><![CDATA[BarcampDelhi-2 is all set to create a nice geeky happening on 9th december 2006. I am luckily attending the camp and the bar. Barcamp is all about sharing new thoughts, discussing new technologies, talking web standards. This time it is supposed to be rich in ruby and rails as rails is really booming everywhere. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=34&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://barcamp.org/BarCampDelhi-2"><strong>BarcampDelhi-2</strong></a> is all set to create a nice geeky happening on 9th december 2006. I am luckily attending the camp and the bar.<br />
<img src="http://static.flickr.com/120/317029379_0a26e17bfc.jpg?v=0" /> Barcamp is all about sharing new thoughts, discussing new technologies, talking web standards.<br />
This time it is supposed to be rich in ruby and rails as rails is really booming everywhere.<br />
I was even planning to give a presentation on <strong>Meta Programming in Ruby</strong> but at the moment the idea is in shade as we thought that the people there might not be as comfortable with ruby to pick the meta programming things interesting. So, now i have planned to present it somewhere in the <strong>ruby/rails workshop</strong> kinda meetups.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=34&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2006/12/08/going-to-barcampdelhi-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>

		<media:content url="http://static.flickr.com/120/317029379_0a26e17bfc.jpg?v=0" medium="image" />
	</item>
		<item>
		<title>Sample Rails Application &#8211; A demo for the ajax based drag drop tree in rubyonrails</title>
		<link>http://ajaxonrails.wordpress.com/2006/11/26/ajaxonrailsdragdroptree/</link>
		<comments>http://ajaxonrails.wordpress.com/2006/11/26/ajaxonrailsdragdroptree/#comments</comments>
		<pubDate>Sun, 26 Nov 2006 09:44:31 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[ajax tree]]></category>
		<category><![CDATA[drag drop tree]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<category><![CDATA[tree]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/11/26/ajaxonrailsdragdroptree/</guid>
		<description><![CDATA[I have provided the source code of the ajax based drag drop tree in rubyonrails in one of my previous posts. I found some of the people are getting problems to incorporate the code into their running applications so i am providing a sample rails application in which all the code for tree is already [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=28&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have provided the <a href="http://ajaxonrails.wordpress.com/2006/08/18/sorce-code-for-ajax-based-drag-drop-navigation-tree-for-rails/"><strong>source code</strong></a> of the ajax based drag drop tree in rubyonrails in one of my previous posts.<br />
I found some of the people are getting problems to incorporate the code into their running applications so i am providing a sample rails application in which all the code for tree is already been placed well.<br />
However the code written seems to be lagged behind the current trends followed in rails development coz of the fire growth of rails itself, but its simply that when i wrote this tree i was very new to rails so you may find the code looks like an old wine but still tastes good to go with.</p>
<p>CHECK THIS OUT&#8230;</p>
<p><strong>Four simple steps to make the tree working&#8230;</strong></p>
<ol>
<li><a href="http://rubyforge.org/frs/download.php/15381/ajaxtree.zip"><strong>DOWNLOAD</strong></a> the sample application. (let me know if you are getting any error in downloading the application.)</li>
<li>Create a <strong>test</strong> database in mysql <strong>or</strong> modify the file <strong>/config/database.yml</strong> according to the database and user u need.</li>
<li>Run the command
<pre>ajaxtree&gt; rake db:migrate</pre>
<p>from the application root.</li>
<li>Run the application server by running
<pre>ajaxtree&gt; ruby script/server</pre>
<p>and watch the working tree at <strong>http://localhost:3000</strong></li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=28&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2006/11/26/ajaxonrailsdragdroptree/feed/</wfw:commentRss>
		<slash:comments>55</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript Validations and Encryptions &#8212; how to use javascript encryptions in rails.</title>
		<link>http://ajaxonrails.wordpress.com/2006/11/14/javascript-validations-and-encryptions-how-to-use-javascript-encryptions-in-rails/</link>
		<comments>http://ajaxonrails.wordpress.com/2006/11/14/javascript-validations-and-encryptions-how-to-use-javascript-encryptions-in-rails/#comments</comments>
		<pubDate>Tue, 14 Nov 2006 20:14:33 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[encryption]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<category><![CDATA[validations]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/11/14/javascript-validations-and-encryptions-how-to-use-javascript-encryptions-in-rails/</guid>
		<description><![CDATA[A Quick Review on ENCRYPTIONS We all are very familiar with the ruby encryptions we usually implement SHA1 or MD5 in our rails applications. In my ongoing project i have been through encryptions in little bit more depth. MD5 was the most widely used hash algorithm, it converts a string into a 32 characters long [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=24&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>A Quick Review on ENCRYPTIONS</strong><br />
We all are very familiar with the ruby encryptions we usually implement <strong>SHA1</strong> or <strong>MD5</strong> in our rails applications. In my ongoing project i have been through encryptions in little bit more depth.<br />
<strong>MD5</strong> was the most widely used hash algorithm, it converts a string into a 32 characters long hashed key. Then comes the <strong>SHA</strong> &#8211; <strong>Secure Hash Algorith</strong>. SHA is a series of hash algorithms and its first member is SHA-0 however soon its usage was replaced by the successor SHA-1 and thereafter SHA-0 was never used again. The current members to the SHA series are SHA-1, SHA-224, SHA-256, SHA-384 and the latest SHA-512. At this moment <strong>SHA-1</strong> is considered to be the successor of <strong>MD5</strong> because of the usage and popularity statistics.<br />
However SHA-224, SHA-256, SHA-384 and SHA-256 are collectively known as SHA-2 series.<br />
Till yet SHA-0 and SHA-1 have been reported attacked but no attack has been found on SHA-2 series.(took from <strong><a href="http://en.wikipedia.org/wiki/SHA2">wiki</a></strong>)</p>
<p>Here we will discuss the javascript and ruby based encryptions for SHA-256 only.</p>
<p><strong>Javascript Encryption in Ruby on Rails</strong></p>
<p>If you need to encrypt the password at client side in ror or any other web-based form submission so that the real password string can not reach the server you can you can download the Javascript Encryption files from <a href="http://anmar.eu.org/projects/jssha2/files/jssha2-0.3.zip"><strong>here</strong></a>. There is all collection of the javascript encryption files available in the <a href="http://anmar.eu.org/projects/jssha2/files/jssha2-0.3.zip"><strong>above</strong></a> archive. You will not need all of them. Put the file <strong>sha256.js</strong> in the <strong>/public/javascripts/</strong> directory of your rails application.<br />
Now lets take the example of <strong>Reset Password</strong> where encryption is a must.<br />
This is how you can make your view say <strong>reset_password.rhtml</strong></p>
<pre><code>
&lt;%= javascript_include_tag 'sha256' %&gt;
&lt;script type="text/javascript"&gt;
// &lt;![CDATA[
  function hashPassword() {
  reg = new RegExp(/^(?=.*&#92;d)(?=.*([a-z]|[A-Z]))([&#92;x20-&#92;x7E]){8,40}$/);
  if((reg.test($F('password')))&amp;&amp;($F('password')==$F('password_confirmation'))){
  document.reset_password.realpass.value = hex_sha256($F('password'));
  $('password_confirmation').value = '';
  $('password').value = '';
  Element.hide("reset_password");
  Element.show("updating");
  return true
  }
  else{
  $('errors_in_pass').innerHTML = "Password should match confirmation.&lt;br /&gt;Password should contain at least one letter and one integer.&lt;br /&gt;Password length should be 8 to 40 characters long.&lt;br /&gt;";
  $('password_confirmation').value = '';
  $('password').value = '';
  return false
  }
  }
// ]]&gt;
&lt;/script&gt;
&lt;h1&gt;Change Password&lt;/h1&gt;
&lt;div style="display:none;" id="updating"&gt;Updating Password&lt;/div&gt;
&lt;div id = "reset_password"&gt;
&lt;div style = "color:red" id = "errors_in_pass"&gt;&lt;%= flash[:notice] %&gt;&lt;/div&gt;
&lt;% form_for :person, @person, :url =&gt; {:action =&gt; "reset_password"}, :html =&gt; {:name =&gt; "reset_password",:onsubmit =&gt; "return hashPassword()"} do |f| %&gt;
&lt;%= hidden_field_tag 'realpass' %&gt;
        New Password
        &lt;%= f.password_field :password, :id=&gt;"password", :class =&gt; "field text", :value=&gt;"" %&gt;
	Confirm New Password
        &lt;%= f.password_field :password_confirmation, :id=&gt;"password_confirmation", :class =&gt; "field text", :value=&gt;"" %&gt;
	&lt;%= f.submit_tag "Continue" %&gt;
&lt;% end %&gt;
&lt;/div&gt;
</code></pre>
<p>However it may possible that a user have disabled the javascript of the browser. In that case we will need to add the encryption at server side too. In rubyonrails we can easily handle the SHA256 encryption for let say <strong>password</strong> by adding the code</p>
<pre><code>
require "digest/sha2"

hashed_password = Digest::SHA256.hexdigest("password_string")

</code></pre>
<p>in an appropriate position in the controller.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=24&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2006/11/14/javascript-validations-and-encryptions-how-to-use-javascript-encryptions-in-rails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>
	</item>
		<item>
		<title>Integration Testing in Ruby on Rails &#8212; How to maintain sessions while testing in Rails</title>
		<link>http://ajaxonrails.wordpress.com/2006/11/02/integration-testing-in-ruby-on-rails-how-to-maintain-sessions-while-testing-in-rails/</link>
		<comments>http://ajaxonrails.wordpress.com/2006/11/02/integration-testing-in-ruby-on-rails-how-to-maintain-sessions-while-testing-in-rails/#comments</comments>
		<pubDate>Thu, 02 Nov 2006 17:52:38 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[integration]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<category><![CDATA[tests]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/11/02/integration-testing-in-ruby-on-rails-how-to-maintain-sessions-while-testing-in-rails/</guid>
		<description><![CDATA[Well, its a natural feel to get amazed out of every other delighted feature provided by RubyonRails and so appreciating it before actually talking about the feature in every second post. This line is for those people who have published that the worst thing about rails is that every rails programmer always just focus on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=22&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, its a natural feel to get amazed out of every other delighted  feature provided by RubyonRails and so appreciating it before actually talking about the feature in every second post. This line is for those people who have published that the worst thing about rails is that every rails programmer always just focus on the appreciation of rails and not on the framework per se. As i think  the reason behind his(let say)  perception is that he might not have tried rails and probably in all posts he have been through yet is that he would have got jealous out of gaining popularity of <strong>ruby on rails</strong> over <strong>jsp</strong> and <strong>asp</strong> and else, and therefore he might not be reading the whole post due to which he just remained untouched with the real appreciable features.<br />
<strong>Anyhow, here is my post on a fantastic rails feature &#8211; Integration Testing&#8230;</strong><br />
RoR is the only web application  framework which provides an inbuilt high level of testing. Out of the whole testing the most interesting real time testing is <strong>Integrations Testing</strong> where you can synchronize with the sessions too unlike in the <strong>Functional Testing</strong>.</p>
<p><strong>Where exactly we should use Integration Testing ?</strong><br />
Whenever we need to test a series of functionalities which belongs to more than one controller , we should go for Integration Testing and not the Functional one.</p>
<p>Since the functional and unit testing are controller and model centric respectively, rails automatically creates the related functional and unit tests files. But as integrations testing is not confined in any criteria of a specific controller or model, we have to create the integrations file manually&#8230; Well, nothing is headache in rails. Its a simple pre-written script, all you need is to call that script with a name you like for whole story you wish to test in the integration test.</p>
<p><strong>Here is a real example of Integration Test in Ruby on Rails</strong></p>
<p>Considerations for test&#8230;<br />
We will simply test</p>
<ul>
<li>signing in</li>
<li>posting a new article</li>
<li>deleting an article with xml_http_request (ajax post request)</li>
</ul>
<p>Create the test file by running</p>
<pre><code>
ruby script/generate integration_test initial_features
</code></pre>
<p>Make sure that now you have the file <strong>/test/integration/initial_features_test.rb</strong>. Rails automatically appends <strong>_test</strong> at the end of the file name.</p>
<p><strong>For god sake Lets start the testing now <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </strong><br />
Code for the file <strong>/test/integration/initial_features_test.rb</strong></p>
<pre><code>
require "#{File.dirname(__FILE__)}/../test_helper"

class InitialFeaturesTest &lt; ActionController::IntegrationTest
  fixtures :users, :articles

  def test_initial_features
     user = user_for_test
     user.try_to_signin
     user.signin
     user.post_an_article
     user.delete_an_article_with_xhr
  end

  def user_for_test
    open_session do |user|
      def user.try_to_signin
        assert_nil session[:user] # assert_session_has &amp; _has_no have been deprecated
        get "user/signin"
        assert_response :success
        post "user/signin", :email=&gt;"test failure string", :password=&gt;"test failure string"
        assert_nil session[:user]
      end
      def user.signin
        assert_nil session[:user]
        user = users(:first)
        post "user/signin", :email=&gt;user.email, :password=&gt;user.password
        assert_not_nil session[:user]
        assert_response :redirect
        assert_redirected_to "articles/show"
        # now as the session is set once, we need not to signin again
      end
      def user.post_an_article
        get "articles/show"
        assert_response :success
        assert_template "articles/show"
        user = session[:user]
        articles_count = user.articles.length
        post_via_redirect "article/new", :title=&gt;"Integration Tetsing in Rails", :description=&gt;"another relishing rails feature"
        assert_template "articles/show"
        assert_equal articles_count.next, user.reload.articles.length
      end
      def user.delete_an_article_with_xhr
        user = session[:user]
        articles_count = user.articles.length
        xml_http_request "articles/delete", :id=&gt;articles(:first).id
        assert_equal articles_count-1,user.reload.articles.length
      end
    end
  end

end
</code></pre>
<p>Although these are not that high level integration tests that rails can provide but its just an overview on the integration tests. I will explain them soon.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=22&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2006/11/02/integration-testing-in-ruby-on-rails-how-to-maintain-sessions-while-testing-in-rails/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>
	</item>
		<item>
		<title>RoR(Ruby on Rails) in India &#8211; Ruby on Rails based Indian Company</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/25/rorruby-on-rails-in-india-ruby-on-rails-based-indian-company/</link>
		<comments>http://ajaxonrails.wordpress.com/2006/10/25/rorruby-on-rails-in-india-ruby-on-rails-based-indian-company/#comments</comments>
		<pubDate>Wed, 25 Oct 2006 07:48:08 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[India]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/25/rorruby-on-rails-in-india-ruby-on-rails-based-indian-company/</guid>
		<description><![CDATA[Ruby on Rails is creating the storms in the web development all over the world. RoR is even capable to challenge Big Caps like Microsoft&#8217;s Asp.NET and so everything else in the specific area. World is continuously changing&#8230; The current WEB not solely depends on the old,encoded,paid,stressful technologies but the fresh,open-source,free,joyful technologies like Ruby on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=21&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ruby on Rails is creating the storms in the web development all over the world. RoR is even capable to challenge <strong>Big Caps </strong> like Microsoft&#8217;s Asp.NET and so everything else in the specific area. World is continuously changing&#8230; The current <strong>WEB</strong> not solely depends on the <strong>old,encoded,paid,stressful</strong> technologies but the <strong>fresh,open-source,free,joyful</strong> technologies like <strong>Ruby on Rails</strong> are now creating the new highways to connect the <strong>WEB</strong>&#8230; What else ?.. Providing a beautiful atmosphere to web-developers. At the moment the whole world of web-development is cherishing the <strong>fresh breeze of RoR</strong>.<br />
<strong>How much of INDIA is delighted by Ruby on Rails ?</strong><br />
Currently, the INDIAN side of Rails is a small community&#8230;but growing at a rapid rate. I am proudly working at <a href="http://vinsol.com"><strong>VINSOL</strong></a>(New Delhi,India), a company full fledged working on rails.<br />
<a href="http://vinsol.com"><strong>VINSOL</strong></a> is currently holding some good clients for web-development and providing efficient services in Ruby on Rails.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=21&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2006/10/25/rorruby-on-rails-in-india-ruby-on-rails-based-indian-company/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>
	</item>
		<item>
		<title>Captcha in Ruby on Rails &#8211; Customize the use of captcha in the plugin validates_captcha</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/24/captcha-in-ruby-on-rails-customize-the-use-of-captcha-in-the-plugin-validates_captcha/</link>
		<comments>http://ajaxonrails.wordpress.com/2006/10/24/captcha-in-ruby-on-rails-customize-the-use-of-captcha-in-the-plugin-validates_captcha/#comments</comments>
		<pubDate>Tue, 24 Oct 2006 18:59:40 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[captcha]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[validations]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/24/captcha-in-ruby-on-rails-customize-the-use-of-captcha-in-the-plugin-validates_captcha/</guid>
		<description><![CDATA[Hello Everyone !! I have released a captcha plugin Simple Captcha. It is really simple to implement, and provides a cool feature of multiple styles of images. Previous Post for validates_captcha To implement captcha in RubyonRails, validates_captcha plugin can be a good option but a small customization i need with this plugin was to use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=17&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello Everyone !!<br />
I have released a captcha plugin <a href="http://expressica.com/2007/02/06/simple-captcha-released-the-captcha-for-rails-applications/"><b>Simple Captcha</b></a>. It is really simple to implement, and provides a cool feature of multiple styles of images.</p>
<hr />
<b>Previous Post for validates_captcha</b></p>
<hr />
To implement captcha in RubyonRails, <a href="http://svn.2750flesk.com/validates_captcha"><strong>validates_captcha</strong></a> plugin can be a good option but a small customization i need with this plugin was to use it on some specific action and not to be validated the captcha field every time an instance of the model is saved or updated.<br />
Here is a small work-around for its customization&#8230;<br />
<strong>How to use customized captcha in RoR ?</strong><br />
Install the plugin validates_captcha in your rails application by running this command from the root of your application</p>
<pre>
ruby script/plugin install http://svn.2750flesk.com/validates_captcha</pre>
<p>Make sure that you can now see the directory <strong>vedor/plugins/validates_captcha</strong>.</p>
<p>Now run these commands from your application root to make the image and data directories</p>
<pre>
  ruby script/generate captcha store_directory
  ruby script/generate captcha image_directory</pre>
<p>Here is the complete <a href="http://dev.2750flesk.com/validates_captcha/"><strong>API</strong></a> for the usage of this plugin. I am describing the same idea as given in this API but in a bit more specific means.</p>
<p>Lets consider a model <strong>User</strong> in which we will implement the captcha.<br />
Add the following code in the file <strong>app/models/user.rb</strong></p>
<pre>
  class User &lt; ActiveRecord::Base

    validates_captcha :if =&gt; :request_captcha_validation?
    attr_accessor :request_captcha_validation

    def request_captcha_validation?
      (self.request_captcha_validation==true)? true : false
    end

  end</pre>
<h3>Handle View and Controller</h3>
<p><strong>Add the code in the view inside your existing form.</strong></p>
<pre>
  &lt;% c = prepare_captcha :type =&gt; :image -%&gt;
  &lt;%= captcha_hidden_field c, 'user' %&gt;
  &lt;%= captcha_image_tag c %&gt;
  &lt;%= captcha_label 'user', 'Type in the text from the image above' %&gt;
  &lt;%= captcha_text_field 'user' %&gt;</pre>
<p><strong>Your controller will look like</strong></p>
<pre>
  def save
    # the line in bold represents that you need captcha validation.
    # if captcha validation is not required then remove this line from your controller.
    @user = User.new(params[:user])
    <strong>@user.request_captcha_validation = true</strong>
    @user.save
  end</pre>
<p>However image is too noisy and it contains repeated strings.<br />
To improve the quality of images generated by the plugin validates_captcha visit <a href="http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/"><strong>Here</strong></a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=17&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2006/10/24/captcha-in-ruby-on-rails-customize-the-use-of-captcha-in-the-plugin-validates_captcha/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>
	</item>
		<item>
		<title>MicroSoft&#8217;s IE-7 Released &#8211; another headache for web developers.</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/21/microsofts-ie-7-released-another-headache-for-web-developers/</link>
		<comments>http://ajaxonrails.wordpress.com/2006/10/21/microsofts-ie-7-released-another-headache-for-web-developers/#comments</comments>
		<pubDate>Sat, 21 Oct 2006 19:07:52 +0000</pubDate>
		<dc:creator>Sur Max</dc:creator>
				<category><![CDATA[ie]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/21/microsofts-ie-7-released-another-headache-for-web-developers/</guid>
		<description><![CDATA[Current World&#8217;s software giant Microsoft finally released the new milestone IE-7. Once again web programmers have to reload their guns to cross a new barrirer of all new standards of MicroSoft another thing IE-7. Its a feel of proud for Microsoft to not to follow the web-standards of W3C and to give themselves a fresh [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=16&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Current World&#8217;s software giant Microsoft finally released the new milestone <strong>IE-7</strong>.<br />
Once again web programmers have to reload their guns to cross a new barrirer of all new standards of <strong>MicroSoft another thing IE-7</strong>.<br />
Its a feel of proud for Microsoft to not to follow the web-standards of <strong>W3C</strong> and to give themselves a fresh new region of narrow mentality people and a feel of headache for web developers to again customizing their previous running web-sites which already  been <strong>specially</strong> customized to go ok with a mess <strong>IE-6</strong> and here is a repeated story again coz the most amazing thing is that <strong>IE-7</strong> is even not following the styles of <strong>IE-6</strong>&#8230;</p>
<p>Go FireFox !! Go Flock !!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ajaxonrails.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ajaxonrails.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajaxonrails.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajaxonrails.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajaxonrails.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajaxonrails.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajaxonrails.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajaxonrails.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajaxonrails.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajaxonrails.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajaxonrails.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajaxonrails.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajaxonrails.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajaxonrails.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajaxonrails.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajaxonrails.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajaxonrails.wordpress.com&amp;blog=345841&amp;post=16&amp;subd=ajaxonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajaxonrails.wordpress.com/2006/10/21/microsofts-ie-7-released-another-headache-for-web-developers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ce43b11af679aaa142f5ba7e35e64c4b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sur Max</media:title>
		</media:content>
	</item>
	</channel>
</rss>
