<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Maulana Ruby</title>
	<atom:link href="http://maulanaruby.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://maulanaruby.wordpress.com</link>
	<description>Few things about ruby and web from pakistani web programmer</description>
	<pubDate>Mon, 30 Jun 2008 07:19:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Simplicant Goes into Public Beta</title>
		<link>http://maulanaruby.wordpress.com/2008/04/21/simplicant-goes-into-public-beta/</link>
		<comments>http://maulanaruby.wordpress.com/2008/04/21/simplicant-goes-into-public-beta/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 12:46:17 +0000</pubDate>
		<dc:creator>hasham2006</dc:creator>
		
		<category><![CDATA[Ruby Language]]></category>

		<category><![CDATA[Ruby on rails]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://maulanaruby.wordpress.com/2008/04/21/simplicant-goes-into-public-beta/</guid>
		<description><![CDATA[The public beta of Simplicant was officially released few days ago. As a follow up to my previous post . Here is some details according to official press release.
Simplicant allows SMEs to move towards a more organized, cleaner job applications management system. simplicant is the first web 2.0 applicant tracking system and brings the spirit [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The public beta of Simplicant was officially released few days ago. As a follow up to my previous <a href="http://maulanaruby.wordpress.com/2007/09/08/simplicant-public-beta-will-be-launched-soon/">post</a> . Here is some details according to official press release.</p>
<blockquote cite="http://www.prweb.com/releases/2008/04/prweb866764.htm"><p>Simplicant allows SMEs to move towards a more organized, cleaner job applications management system. simplicant is the first web 2.0 applicant tracking system and brings the spirit of web 2.0 into hiring. It is completely web-based (Software as a Service) and makes use of powerful web 2.0 concepts like tags, rankings, search and collaboration to make the hiring experience easier, smoother and quicker.</p>
<p>Here is link to official press release:</p>
<p><cite><br />
<a href="http://www.prweb.com/releases/2008/04/prweb866764.htm">Simplicant Goes into Public Beta</a>&nbsp;<br />
</cite></p></blockquote>
<p><!-- technorati tags begin -->
<p style="font-size:10px;text-align:right;">Tags: <a href="http://technorati.com/tag/RubyLanguage" rel="tag">RubyLanguage</a>, <a href="http://technorati.com/tag/%20Ruby%20on%20rails" rel="tag"> Ruby on rails</a>, <a href="http://technorati.com/tag/%20Web%202.0" rel="tag"> Web 2.0</a></p>
<p><!-- technorati tags end --></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maulanaruby.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maulanaruby.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maulanaruby.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maulanaruby.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maulanaruby.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maulanaruby.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maulanaruby.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maulanaruby.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maulanaruby.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maulanaruby.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maulanaruby.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maulanaruby.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maulanaruby.wordpress.com&blog=765503&post=18&subd=maulanaruby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maulanaruby.wordpress.com/2008/04/21/simplicant-goes-into-public-beta/feed/</wfw:commentRss>
		</item>
		<item>
		<title>BitNami JRubyStack makes JRuby on Rails setup simple</title>
		<link>http://maulanaruby.wordpress.com/2008/03/18/bitnami-jrubystack-makes-jruby-on-rails-setup-simple/</link>
		<comments>http://maulanaruby.wordpress.com/2008/03/18/bitnami-jrubystack-makes-jruby-on-rails-setup-simple/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 07:43:42 +0000</pubDate>
		<dc:creator>hasham2006</dc:creator>
		
		<category><![CDATA[Ruby on rails]]></category>

		<guid isPermaLink="false">http://maulanaruby.wordpress.com/2008/03/18/bitnami-jrubystack-makes-jruby-on-rails-setup-simple/</guid>
		<description><![CDATA[BitNami JRubyStack makes JRuby on Rails setup simple. The stack comes bundled with JRuby,  Rails, Tomcat, Glassfish Gem, Mysql and Subversion. You can run your Rails app either with Glassfish or make a war and deloy to tomcat. The whole package is distributed under Apache 2.0 License.
There has been few sites that use JRuby [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://bitnami.org/stack/jrubystack">BitNami JRubyStack</a> makes JRuby on Rails setup simple. The stack comes bundled with JRuby,  Rails, Tomcat, Glassfish Gem, Mysql and Subversion. You can run your Rails app either with Glassfish or make a war and deloy to tomcat. The whole package is distributed under Apache 2.0 License.</p>
<p>There has been few sites that use JRuby proving that JRuby does scale. Thoughtworks project management application <a href="http://studios.thoughtworks.com/mingle-project-intelligence">mingle</a> is powered by JRuby and Rails. Sun <a href="http://mediacast.sun.com/">mediacast</a> site is also now running on JRuby and Rails<!-- technorati tags begin -->
<p style="font-size:10px;text-align:right;">Tags: <a href="http://technorati.com/tag/jruby" rel="tag">jruby</a>, <a href="http://technorati.com/tag/Rails" rel="tag">Rails</a></p>
<p><!-- technorati tags end --></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maulanaruby.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maulanaruby.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maulanaruby.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maulanaruby.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maulanaruby.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maulanaruby.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maulanaruby.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maulanaruby.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maulanaruby.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maulanaruby.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maulanaruby.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maulanaruby.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maulanaruby.wordpress.com&blog=765503&post=17&subd=maulanaruby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maulanaruby.wordpress.com/2008/03/18/bitnami-jrubystack-makes-jruby-on-rails-setup-simple/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Matz talks about Ruby 1.9 (Yarv)</title>
		<link>http://maulanaruby.wordpress.com/2008/03/18/matz-talks-about-ruby-19-yarv/</link>
		<comments>http://maulanaruby.wordpress.com/2008/03/18/matz-talks-about-ruby-19-yarv/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 06:41:07 +0000</pubDate>
		<dc:creator>hasham2006</dc:creator>
		
		<category><![CDATA[Ruby Language]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[yarv]]></category>

		<guid isPermaLink="false">http://maulanaruby.wordpress.com/?p=16</guid>
		<description><![CDATA[Matz talks about new Ruby version. Ruby 1.9 beta was released on christmas day at 25 december 2007. 
Matz presents about new ruby version at google conference. The new version was earlier known as Yet Another Ruby Virtual machine (YARV). The main feature of Ruby 1.9 is support for platform threads. The Tread class in [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Matz talks about new Ruby version. Ruby 1.9 beta was released on christmas day at 25 december 2007. <span style="text-align:center; display: block;"><a href="http://maulanaruby.wordpress.com/2008/03/18/matz-talks-about-ruby-19-yarv/"><img src="http://img.youtube.com/vi/oEkJvvGEtB4/2.jpg" alt="" /></a></span><br />
Matz presents about new ruby version at google conference. The new version was earlier known as Yet Another Ruby Virtual machine (YARV). The main feature of Ruby 1.9 is support for platform threads. The Tread class in earlier Ruby VM&#8217;s were green threads.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maulanaruby.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maulanaruby.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maulanaruby.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maulanaruby.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maulanaruby.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maulanaruby.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maulanaruby.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maulanaruby.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maulanaruby.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maulanaruby.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maulanaruby.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maulanaruby.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maulanaruby.wordpress.com&blog=765503&post=16&subd=maulanaruby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maulanaruby.wordpress.com/2008/03/18/matz-talks-about-ruby-19-yarv/feed/</wfw:commentRss>
	
		<media:content url="http://img.youtube.com/vi/oEkJvvGEtB4/2.jpg" medium="image" />
	</item>
		<item>
		<title>Simplicant Public Beta will be launched soon</title>
		<link>http://maulanaruby.wordpress.com/2007/09/08/simplicant-public-beta-will-be-launched-soon/</link>
		<comments>http://maulanaruby.wordpress.com/2007/09/08/simplicant-public-beta-will-be-launched-soon/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 09:02:45 +0000</pubDate>
		<dc:creator>hasham2006</dc:creator>
		
		<category><![CDATA[Ruby Language]]></category>

		<category><![CDATA[Ruby on rails]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://maulanaruby.wordpress.com/2007/09/08/simplicant-public-beta-will-be-launched-soon/</guid>
		<description><![CDATA[It has been almost an year since my first Ruby on Rails project was launced as private beta. The Simplicant  is simplest web based applicant tracking system. Based on years of experience in hiring of medium and small companies, simplicant gives you headstart when you want hire applicants in your comapnies. This Applicant tracking system not only allows you to post jobs on job board and recieve resumes, but also allows you to ask questions before you interview the applicant. After interview simplicant allows you to communicate with applicants
 
Simplicant has been totally overhauled  for performance [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It has been almost an year since my first <a HREF="http://www.rubyonrails.org">Ruby on Rails</a> project was launced as private beta. The <a HREF="http://www.simplicant.com">Simplicant </a> is simplest web based applicant tracking system. Based on years of experience in hiring of medium and small companies, <a HREF="http://www.simplicant.com">simplicant</a> gives you headstart when you want hire applicants in your comapnies. This Applicant tracking system not only allows you to post jobs on job board and recieve resumes, but also allows you to ask questions before you interview the applicant. After interview simplicant allows you to communicate with applicants</p>
<p><a HREF="http://maulanaruby.files.wordpress.com/2007/09/simplicant_logo.gif" TITLE="the Simplest applicant tracking system on web"><img SRC="http://maulanaruby.files.wordpress.com/2007/09/simplicant_logo.gif" ALT="the Simplest applicant tracking system on web" /> </a></p>
<p><a HREF="http://www.simplicant.com">Simplicant</a> has been totally overhauled  for performance and scalability. The web based interface has features that are found in todays Web 2.0 applications.</p>
<p>The company behind <a HREF="http://www.simplicant.com">Simplicant</a> is <a HREF="http://www.confiz.com">confiz solutions</a> which is known for developing many of todays major Web 2.0 apps. The new public beta for will be launched soon.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maulanaruby.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maulanaruby.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maulanaruby.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maulanaruby.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maulanaruby.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maulanaruby.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maulanaruby.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maulanaruby.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maulanaruby.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maulanaruby.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maulanaruby.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maulanaruby.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maulanaruby.wordpress.com&blog=765503&post=14&subd=maulanaruby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maulanaruby.wordpress.com/2007/09/08/simplicant-public-beta-will-be-launched-soon/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rubinus - Smalltalk inspired Ruby VM</title>
		<link>http://maulanaruby.wordpress.com/2007/08/01/rubinus-smalltalk-inspired-ruby-vm/</link>
		<comments>http://maulanaruby.wordpress.com/2007/08/01/rubinus-smalltalk-inspired-ruby-vm/#comments</comments>
		<pubDate>Wed, 01 Aug 2007 06:07:13 +0000</pubDate>
		<dc:creator>hasham2006</dc:creator>
		
		<category><![CDATA[Ruby Language]]></category>

		<guid isPermaLink="false">http://maulanaruby.wordpress.com/2007/08/01/rubinus-smalltalk-inspired-ruby-vm/</guid>
		<description><![CDATA[Borrowing ideas from smalltalk-80 Evan Phoenix (of EngineYard) has created a new Ruby VM. The VM is written in C with Ruby like syntax. Language known as Garnet (formerly known as Cuby). Most parts of VM are written in Ruby itself except GC , Core VM (opcodes) and Primitives which are written in Garnet.

The link [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Borrowing ideas from smalltalk-80 Evan Phoenix (of EngineYard) has created a new Ruby VM. The VM is written in C with Ruby like syntax. Language known as Garnet (formerly known as Cuby). Most parts of VM are written in Ruby itself except GC , Core VM (opcodes) and Primitives which are written in Garnet.</p>
<p><object type='application/x-shockwave-flash' wmode='transparent' data='https://s3.amazonaws.com:443/slideshare/ssplayer.swf?id=42361&#038;doc=rubinius-a-tool-of-the-future-17091' width='425' height='348'><param name='movie' value='https://s3.amazonaws.com:443/slideshare/ssplayer.swf?id=42361&#038;doc=rubinius-a-tool-of-the-future-17091' /></object></p>
<p>The link to InfoQ article is:</p>
<p><a href="http://www.infoq.com/news/2007/07/rubinius-interview-part-one">http://www.infoq.com/news/2007/07/rubinius-interview-part-one</a></p>
<p>Also look at Ruby VM performance shootout here:</p>
<p><a href="http://www.oreillynet.com/ruby/blog/2007/02/fascinating_ruby_implementatio.html">http://www.oreillynet.com/ruby/blog/2007/02/fascinating_ruby_implementatio.html</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maulanaruby.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maulanaruby.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maulanaruby.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maulanaruby.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maulanaruby.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maulanaruby.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maulanaruby.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maulanaruby.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maulanaruby.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maulanaruby.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maulanaruby.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maulanaruby.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maulanaruby.wordpress.com&blog=765503&post=13&subd=maulanaruby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maulanaruby.wordpress.com/2007/08/01/rubinus-smalltalk-inspired-ruby-vm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>STI vs. Polymorphic association</title>
		<link>http://maulanaruby.wordpress.com/2007/02/17/sti-vs-polymorphic-association/</link>
		<comments>http://maulanaruby.wordpress.com/2007/02/17/sti-vs-polymorphic-association/#comments</comments>
		<pubDate>Sat, 17 Feb 2007 08:51:22 +0000</pubDate>
		<dc:creator>hasham2006</dc:creator>
		
		<category><![CDATA[Ruby on rails]]></category>

		<guid isPermaLink="false">http://maulanaruby.wordpress.com/2007/02/17/sti-vs-polymorphic-association/</guid>
		<description><![CDATA[This is a common to have join between two tables based on condition. suppose we have table in database called comments and we can have comments on different thing like a video, profile or picture. So keeping DRY (Don&#8217;t repeat yourself) principle in mind while designing your database. You may want to have relationship between [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is a common to have join between two tables based on condition. suppose we have table in database called comments and we can have comments on different thing like a video, profile or picture. So keeping DRY (<em>Don&#8217;t repeat yourself</em>) principle in mind while designing your database. You may want to have relationship between single comments table and videos or profiles table.</p>
<p>At database level you should have two fields in table one field (<em>i.e. type</em>)  that identifies the type of comment whether it is a comment on video or it&#8217;s a comment on profile, and another field (<span style="font-style:italic;">i.e source_id</span>) that contains id of the video or profile that comment was on.</p>
<p>In Ruby on Rails currently there are two ways to define this kind of association between your activerecord models:</p>
<p><strong>Single Table Inheritance:</strong></p>
<p>Here you &#8216;ll create a single table of comments and Comment AR class, there would be two additional classes ProfileComment and VideoComment inheriting from same Comment AR class. Instead of having association between Profile and Comment model there would be association between Profile and ProfileComment subclass. Same will be the case with Video model and VideoComment subclass.</p>
<p>If we take a look at comment table we &#8216;ll see that class name for each record will be automatically  stored in <em>type</em> field. The reference to associated table would be in <em>source_id </em>field.</p>
<p><code><br />
class Comment &lt; ActiveRecord::Base<br />
end<br />
class VideoComment &lt; Comment<br />
belongs_to :video, :foreign_key =&gt; &#8220;source_id&#8221;<br />
end<br />
class ProfileComment &lt; Comment<br />
belongs_to :profile, :foreign_key =&gt; &#8220;source_id&#8221;<br />
end<br />
</code><br />
<strong>Polymorphic Association</strong>:</p>
<p>Since Rails 1.1 there is a simpler way to create this kind of relationship called polymorphic association. In case of polymorphic association you &#8216;ll have two fields called <em>commentable_type</em> and <em>commentable_id, </em>instead of <em>type</em> and <em>source_id.  </em>The <em>commentable_type</em> field will store name of class which that instance relates to and <em>commentable_id</em> saves the reference to instance of that class. The relations will be created like this:</p>
<p><code><br />
class Comment &lt; ActiveRecord::Base<br />
    belongs_to :commentable, :polymorphic =&gt; true<br />
end<br />
class Video &lt; ActiveRecord::Base<br />
    has_many :comments, :as =&gt;  :commentable<br />
end<br />
class Profile &lt; ActiveRecord::Base<br />
    has_many :comments, :as =&gt;  :commentable<br />
end<br />
</code></p>
<p><strong>Pros and Cons:</strong></p>
<ul>
<li>The STI approach offers more flexibilty by allowing you to have additional fields that only have value in case of one sub class. For access from other sub class can be disallowed be overridden accessors.</li>
<li>The STI requires you to create a seperate class to implement a relation between two models, resulting in more classses. which is not case with polymorphic association</li>
<li>The STI results in more code.It  is confusing to some programmers to understand relation between STI classes</li>
<li> The polymorphic association is very easy to implement.</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maulanaruby.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maulanaruby.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maulanaruby.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maulanaruby.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maulanaruby.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maulanaruby.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maulanaruby.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maulanaruby.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maulanaruby.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maulanaruby.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maulanaruby.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maulanaruby.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maulanaruby.wordpress.com&blog=765503&post=5&subd=maulanaruby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maulanaruby.wordpress.com/2007/02/17/sti-vs-polymorphic-association/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Migrate command in Rails 1.2</title>
		<link>http://maulanaruby.wordpress.com/2007/02/09/migrate-command-in-rails-12/</link>
		<comments>http://maulanaruby.wordpress.com/2007/02/09/migrate-command-in-rails-12/#comments</comments>
		<pubDate>Fri, 09 Feb 2007 20:14:39 +0000</pubDate>
		<dc:creator>hasham2006</dc:creator>
		
		<category><![CDATA[Ruby Language]]></category>

		<category><![CDATA[Ruby on rails]]></category>

		<guid isPermaLink="false">http://maulanaruby.wordpress.com/2007/02/09/migrate-command-in-rails-12/</guid>
		<description><![CDATA[The usual migrate command syntax of
rake migrate VERSION=x
throws a warning informing the user that the command is deprecated, the new command syntax is
 rake db:migrate 
look at other depreciations in rails 1.2 at
http://www.railtie.net/articles/2006/11/02/deprecations-in-rails-1-2
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The usual migrate command syntax of</p>
<p><em>rake migrate VERSION=x</em></p>
<p>throws a warning informing the user that the command is deprecated, the new command syntax is</p>
<p><em> rake db:migrate </em></p>
<p>look at other depreciations in rails 1.2 at</p>
<p><a href="http://www.railtie.net/articles/2006/11/02/deprecations-in-rails-1-2">http://www.railtie.net/articles/2006/11/02/deprecations-in-rails-1-2</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/maulanaruby.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/maulanaruby.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/maulanaruby.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/maulanaruby.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/maulanaruby.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/maulanaruby.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/maulanaruby.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/maulanaruby.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/maulanaruby.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/maulanaruby.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/maulanaruby.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/maulanaruby.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=maulanaruby.wordpress.com&blog=765503&post=4&subd=maulanaruby&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://maulanaruby.wordpress.com/2007/02/09/migrate-command-in-rails-12/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>