<?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>I love Rails!</title>
	<atom:link href="http://iloverails.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://iloverails.wordpress.com</link>
	<description>My Rails Attempt</description>
	<lastBuildDate>Mon, 07 Mar 2011 22:27:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='iloverails.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/03259a82681be40c0f5a9331da1f77c3?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>I love Rails!</title>
		<link>http://iloverails.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://iloverails.wordpress.com/osd.xml" title="I love Rails!" />
	<atom:link rel='hub' href='http://iloverails.wordpress.com/?pushpress=hub'/>
		<item>
		<title>HowTo: Import your posts from Blogspot/Blogger</title>
		<link>http://iloverails.wordpress.com/2011/03/07/blogspot-importer/</link>
		<comments>http://iloverails.wordpress.com/2011/03/07/blogspot-importer/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 22:24:13 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[Blogspot]]></category>
		<category><![CDATA[importer]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=71</guid>
		<description><![CDATA[I needed to import blogspot blogs into a different system. I created a plugin that simply parses the xml file that is generated when you export your blogspot blog. Here is the link to github.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=71&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I needed to import blogspot blogs into a different system. I created a plugin that simply parses the xml file that is generated when you export your blogspot blog. Here is the <a href="https://github.com/pash/blogspot_importer">link</a> to github.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=71&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2011/03/07/blogspot-importer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
		<item>
		<title>HowTo: Check if email really exists</title>
		<link>http://iloverails.wordpress.com/2010/12/10/howto-check-if-email-really-exists/</link>
		<comments>http://iloverails.wordpress.com/2010/12/10/howto-check-if-email-really-exists/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 17:03:01 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Github]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=66</guid>
		<description><![CDATA[I had a project that wants to check if an email really exists. Here&#8217;s what we came up initially. We ended up not using this in production though, but it&#8217;s a great tool.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=66&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a project that wants to check if an email really exists. <a href="https://github.com/pash/email_veracity_checker">Here&#8217;s</a> what we came up initially. We ended up not using this in production though, but it&#8217;s a great tool.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=66&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2010/12/10/howto-check-if-email-really-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
		<item>
		<title>HowTo: Authorize.Net CIM and ActiveMerchant</title>
		<link>http://iloverails.wordpress.com/2010/12/07/howto-authorize-net-cim-and-activemerchant/</link>
		<comments>http://iloverails.wordpress.com/2010/12/07/howto-authorize-net-cim-and-activemerchant/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 23:07:00 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[ActiveMerchant]]></category>
		<category><![CDATA[Authorize.Net]]></category>
		<category><![CDATA[Github]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=64</guid>
		<description><![CDATA[I&#8217;ve started working on a Sample Rails App that uses ActiveMerchant to connect to the Authorize.Net API. Here&#8217;s the link.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=64&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started working on a Sample Rails App that uses <a href="http://www.activemerchant.org/">ActiveMerchant</a> to connect to the <a href="http://www.authorize.net/">Authorize.Net</a> API. Here&#8217;s the <a href="https://github.com/pash/authorize_net_active_merchant_sample">link</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=64&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2010/12/07/howto-authorize-net-cim-and-activemerchant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
		<item>
		<title>HowTo: Integrate with ConstantContact</title>
		<link>http://iloverails.wordpress.com/2010/12/07/constantcontact/</link>
		<comments>http://iloverails.wordpress.com/2010/12/07/constantcontact/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 19:36:45 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[ConstantContact]]></category>
		<category><![CDATA[Github]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=61</guid>
		<description><![CDATA[I&#8217;ve started working on a plugin for ConstantContact. You can find the latest development here. I hope you find it useful in integrating your Rails Apps with ConstantContact.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=61&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started working on a plugin for <a href="http://www.constantcontact.com/index.jsp">ConstantContact</a>. You can find the latest development <a href="https://github.com/pash/constantcontact">here</a>.</p>
<p>I hope you find it useful in integrating your Rails Apps with ConstantContact.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=61&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2010/12/07/constantcontact/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
		<item>
		<title>Rescue :me</title>
		<link>http://iloverails.wordpress.com/2010/03/26/rescue-me/</link>
		<comments>http://iloverails.wordpress.com/2010/03/26/rescue-me/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 14:52:16 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[rescue]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=55</guid>
		<description><![CDATA[These rescuers are quite handy to prevent nasty errors in production. # in application_controller.rb rescue_from ActionController::RoutingError, :with =&#62; :route_not_found rescue_from ActiveRecord::RecordNotFound, :with =&#62; :record_not_found rescue_from ActionController::MethodNotAllowed, :with =&#62; :invalid_method rescue_from NoMethodError, :with =&#62; :show_error rescue_from ActionView::TemplateError, :with =&#62; :template_not_found private def route_not_found render :text =&#62; &#8216;Sorry, we could not find what you were looking for.&#8217;, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=55&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>These rescuers are quite handy to prevent nasty errors  in production.</p>
<p># in application_controller.rb<br />
rescue_from ActionController::RoutingError, :with =&gt; :route_not_found<br />
rescue_from ActiveRecord::RecordNotFound, :with =&gt; :record_not_found<br />
rescue_from ActionController::MethodNotAllowed, :with =&gt; :invalid_method<br />
rescue_from NoMethodError, :with =&gt; :show_error<br />
rescue_from ActionView::TemplateError, :with =&gt; :template_not_found</p>
<p>private</p>
<p>def route_not_found<br />
  render :text =&gt; &#8216;Sorry, we could not find what you were looking for.&#8217;, :status =&gt; :not_found<br />
end</p>
<p>etc.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=55&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2010/03/26/rescue-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
		<item>
		<title>HowTo: Changing the column name in a model for validation</title>
		<link>http://iloverails.wordpress.com/2009/09/21/changing-the-column-name-in-a-model-for-validation/</link>
		<comments>http://iloverails.wordpress.com/2009/09/21/changing-the-column-name-in-a-model-for-validation/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 08:58:33 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rails2.3]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=41</guid>
		<description><![CDATA[Sample code taken from here. class User &#62; ActiveRecord::Base HUMANIZED_ATTRIBUTES = { :email =&#62; &#8220;E-mail address&#8221; } def self.human_attribute_name(attr) HUMANIZED_ATTRIBUTES[attr.to_sym] &#124;&#124; super end end<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=41&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sample code taken from <a href="http://stackoverflow.com/questions/808547/fully-custom-validation-error-message-with-rails">here.</a></p>
<blockquote><p>class User &gt; ActiveRecord::Base</p>
<p>HUMANIZED_ATTRIBUTES = {<br />
:email =&gt; &#8220;E-mail address&#8221;<br />
}</p>
<p>def self.human_attribute_name(attr)<br />
HUMANIZED_ATTRIBUTES[attr.to_sym] || super<br />
end</p>
<p>end</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=41&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2009/09/21/changing-the-column-name-in-a-model-for-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
		<item>
		<title>String#present?</title>
		<link>http://iloverails.wordpress.com/2009/08/14/stringpresent/</link>
		<comments>http://iloverails.wordpress.com/2009/08/14/stringpresent/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 09:28:16 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=39</guid>
		<description><![CDATA[&#62;&#62; &#8220;brain&#8221;.present? =&#62; true &#62;&#62; &#8220;&#8221;.present? =&#62; false use something.present? instead of !something.blank?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=39&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&gt;&gt; &#8220;brain&#8221;.present?<br />
=&gt; true</p>
<p>&gt;&gt; &#8220;&#8221;.present?<br />
=&gt; false</p>
<p>use something.present?<br />
instead of !something.blank?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=39&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2009/08/14/stringpresent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
		<item>
		<title>HowTo: Add Ajax Indicators</title>
		<link>http://iloverails.wordpress.com/2009/03/12/howto-add-ajax-indicators/</link>
		<comments>http://iloverails.wordpress.com/2009/03/12/howto-add-ajax-indicators/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 01:41:22 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[indicators]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=36</guid>
		<description><![CDATA[Copy the following code to public/javascripts/application.js Ajax.Responders.register({ &#160;&#160;onCreate: function() { &#160;&#160;&#160;&#160;if (Ajax.activeRequestCount &#62; 0) &#160;&#160;&#160;&#160;&#160;&#160;Element.show('indicator'); &#160;&#160;}, &#160;&#160;onComplete: function() { &#160;&#160;&#160;&#160;if (Ajax.activeRequestCount == 0) &#160;&#160;&#160;&#160;&#160;&#160;Element.hide('indicator'); &#160;&#160;} }); Add a div element to your view with an id of &#8216;indicator&#8217;. Remember to keep this div from displaying by setting the display attribute to none. #indicator{style =&#62; 'display:none'} [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=36&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Copy the following code to public/javascripts/application.js</p>
<blockquote><p><code>Ajax.Responders.register({<br />
&nbsp;&nbsp;onCreate: function() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (Ajax.activeRequestCount &gt; 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Element.show('indicator');<br />
&nbsp;&nbsp;},</p>
<p>&nbsp;&nbsp;onComplete: function() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (Ajax.activeRequestCount == 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Element.hide('indicator');<br />
&nbsp;&nbsp;}<br />
});</code></p></blockquote>
<p>Add a div element to your view with an id of &#8216;indicator&#8217;. Remember to keep this div from displaying by setting the display attribute to none.</p>
<blockquote><p><code>#indicator{style =&gt; 'display:none'}<br />
&nbsp;&nbsp;= image_tag ('/images/my_loading_indicator.gif')<br />
</code></p></blockquote>
<p><a href="http://www.ajaxload.info/">Here</a> is a good site to create your own indicator image.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=36&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2009/03/12/howto-add-ajax-indicators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
		<item>
		<title>HowTo: Use older gems</title>
		<link>http://iloverails.wordpress.com/2008/10/22/howto-use-older-gems/</link>
		<comments>http://iloverails.wordpress.com/2008/10/22/howto-use-older-gems/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 01:20:20 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rails2.1]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=30</guid>
		<description><![CDATA[Now that Rails 2.1.1 is out, when you install using the gem, you get Rails 2.1.1. If you want to install an older version, like Rails 2.1.0, you need to specify the version: sudo gem install rails &#8211;version 2.1.0 You&#8217;ll do this if you have some dependency on the older rails version. To make sure [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=30&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now that Rails 2.1.1 is out, when you install using the gem, you get Rails 2.1.1. If you want to install an older version, like Rails 2.1.0, you need to specify the version:</p>
<blockquote><p>sudo gem install rails &#8211;version 2.1.0</p></blockquote>
<p>You&#8217;ll do this if you have some dependency on the older rails version. To make sure your app will run when you transfer to a different machine, freeze rails into the vendor directory:</p>
<blockquote><p>rake rails:freeze:edge TAG=rel_2-1-0</p></blockquote>
<p>Make sure that your environment.rb specifies the corresponding version.<br />
Finally, you may want to create a new project using an older version of rails. You can do so by:</p>
<blockquote><p>rails _2.1.0_ project_name</p></blockquote>
<p>And apparently, you can use that trick for other gem-installed commands, like capistrano.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=30&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2008/10/22/howto-use-older-gems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
		<item>
		<title>HowTo: Date operations</title>
		<link>http://iloverails.wordpress.com/2008/10/10/howto-date-operations/</link>
		<comments>http://iloverails.wordpress.com/2008/10/10/howto-date-operations/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 08:47:29 +0000</pubDate>
		<dc:creator>Pash</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[dates]]></category>
		<category><![CDATA[Rails2.1]]></category>
		<category><![CDATA[strftime]]></category>

		<guid isPermaLink="false">http://iloverails.wordpress.com/?p=28</guid>
		<description><![CDATA[I&#8217;m just going to copy and paste the code from this site. Basically, time and date manipulations are easy as long as the operations involved are additions and subtractions. Quoted from the link above: Not every arithmetic operation makes sense for dates: you could “multiply two dates” by multiplying the underlying numbers, but that would [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=28&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m just going to copy and paste the code from <a href="http://ajax.howtosetup.info/ruby/doing-date-arithmetic/">this</a> site.</p>
<p>Basically, time and date manipulations are easy as long as the operations involved are additions and subtractions. Quoted from the link above:</p>
<p><strong>Not every arithmetic operation makes sense for dates: you could “multiply two dates” by multiplying the underlying numbers, but that would have no meaning in terms of real time, so Ruby doesn’t define those operators.</strong></p>
<p>Remember:</p>
<ul>
<li>Time has a unit of 1 secondrequire &#8216;date&#8217;<br />
y2k = Time.gm(2000, 1, 1)        # =&gt; Sat Jan 01 00:00:00 UTC 2000<br />
y2k + 1                          # =&gt; Sat Jan 01 00:00:01 UTC 2000<br />
y2k &#8211; 1                          # =&gt; Fri Dec 31 23:59:59 UTC 1999<br />
y2k + (60 * 60 * 24 * 365)       # =&gt; Sun Dec 31 00:00:00 UTC 2000</p>
<p>y2k_dt = DateTime.new(2000, 1, 1)<br />
(y2k_dt + 1).to_s                    # =&gt; &#8220;2000-01-02T00:00:00Z&#8221;<br />
(y2k_dt &#8211; 1).to_s                    # =&gt; &#8220;1999-12-31T00:00:00Z&#8221;<br />
(y2k_dt + 0.5).to_s                  # =&gt; &#8220;2000-01-01T12:00:00Z&#8221;<br />
(y2k_dt + 365).to_s                  # =&gt; &#8220;2000-12-31T00:00:00Z&#8221;</li>
<li> While DateTime and Date have a unit of 1 dayday_one = Time.gm(1999, 12, 31)<br />
day_two = Time.gm(2000, 1, 1)<br />
day_two &#8211; day_one                       # =&gt; 86400.0<br />
day_one &#8211; day_two              # =&gt; -86400.0</p>
<p>day_one = DateTime.new(1999, 12, 31)<br />
day_two = DateTime.new(2000, 1, 1)<br />
day_two &#8211; day_one                         # =&gt; Rational(1, 1)<br />
day_one &#8211; day_two               # =&gt; Rational(-1, 1)</li>
</ul>
<p>Printing dates on our views is done by using the method strftime.</p>
<p>d = Date.today # 2008-08-12<br />
d.strftime(&#8216;%b %d, %Y&#8217;) # will print August 12, 2008</p>
<p>The following are the format codes.  For reference, refer to <a href="http://www.linux-mag.com/id/4070">this</a> site.</p>
<table border="0">
<tbody>
<tr>
<td>Format</td>
<td>Meaning</td>
</tr>
<tr>
<td>%a</td>
<td>The abbreviated weekday name (“Sun&#8217;’)</td>
</tr>
<tr>
<td>%A</td>
<td>The full weekday name (“Sunday&#8217;’)</td>
</tr>
<tr>
<td>%b</td>
<td>The abbreviated month name (“Jan&#8217;’)</td>
</tr>
<tr>
<td>%B</td>
<td>The full month name (“January&#8217;’)</td>
</tr>
<tr>
<td>%c</td>
<td>The preferred local date and time representation</td>
</tr>
<tr>
<td>%d</td>
<td>Day of the month (01..31)</td>
</tr>
<tr>
<td>%H</td>
<td>Hour of the day, 24-hour clock (00..23)</td>
</tr>
<tr>
<td>%I</td>
<td>Hour of the day, 12-hour clock (01..12)</td>
</tr>
<tr>
<td>%j</td>
<td>Day of the year (001..366)</td>
</tr>
<tr>
<td>%m</td>
<td>Month of the year (01..12)</td>
</tr>
<tr>
<td>%M</td>
<td>Minute of the hour (00..59)</td>
</tr>
<tr>
<td>%p</td>
<td>Meridian indicator (“AM&#8217;’ or “PM&#8217;’)</td>
</tr>
<tr>
<td>%S</td>
<td>Second of the minute (00..60)</td>
</tr>
<tr>
<td>%U</td>
<td>Week number of the current year, starting with the first Sunday as the first day of the first week (00..53)</td>
</tr>
<tr>
<td>%W</td>
<td>Week number of the current year, starting with the first Monday as the first day of the first week (00..53)</td>
</tr>
<tr>
<td>%w</td>
<td>Day of the week (Sunday is 0, 0..6)</td>
</tr>
<tr>
<td>%x</td>
<td>Preferred representation for the date alone, no time</td>
</tr>
<tr>
<td>%X</td>
<td>Preferred representation for the time alone, no date</td>
</tr>
<tr>
<td>%y</td>
<td>Year without a century (00..99)</td>
</tr>
<tr>
<td>%Y</td>
<td>Year with century</td>
</tr>
<tr>
<td>%Z</td>
<td>Time zone name</td>
</tr>
<tr>
<td>%%</td>
<td>Literal “%&#8217;’ character</td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iloverails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iloverails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iloverails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iloverails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iloverails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iloverails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iloverails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iloverails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iloverails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iloverails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iloverails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iloverails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iloverails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iloverails.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iloverails.wordpress.com&amp;blog=5088035&amp;post=28&amp;subd=iloverails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iloverails.wordpress.com/2008/10/10/howto-date-operations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db18e8502652793ee89b018f390e7395?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pash</media:title>
		</media:content>
	</item>
	</channel>
</rss>
