<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="0.92">
<channel>
	<title>Web On Rails</title>
	<link>http://webonrails.com</link>
	<description>Exploring RubyOnRails</description>
	<lastBuildDate>Thu, 07 Aug 2008 11:52:09 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Installing gem on Leopard</title>
		<description>May be you guys have noticed that when you try to install a new gem on your machine it says some thing like "Updating meta data for 500 gems" and display one dot per gem. These dots moves very slowly and stops in some time. 

I faced this situation many ...</description>
		<link>http://webonrails.com/2008/08/07/installing-gem-on-leopard/</link>
			</item>
	<item>
		<title>When Ultrasphinx is used with polymorphic associations&#8230;</title>
		<description>Lets first consider simple has_many and belongs_to associations as:

[source:ruby]
class Article < ActiveRecord::Base
  has_many :comments
end
[/source]

[source:ruby]
class Comment < ActiveRecord::Base
  belongs_to :article
end
[/source]

Now if you wish to index the title of associated article with comment for searching, you just need to add " is_indexed :fields => :body, :include => [{ :association_name => ...</description>
		<link>http://webonrails.com/2008/08/07/when-ultrasphinx-is-used-with-polymorphic-associations/</link>
			</item>
	<item>
		<title>When Ultrasphinx is used with STI&#8230;</title>
		<description>Hi Guys, it has been a long time since I last posted. I had worked on several things since then, and have couple of posts pending/draft. One of those posts is related to Ultrasphinx, when it is used with STI models.

For those who are new to Ultrasphinx: Ultrasphinx is a ...</description>
		<link>http://webonrails.com/2008/07/31/when-ultrasphinx-is-used-with-sti/</link>
			</item>
	<item>
		<title>Git Error: trailing whitespace, indent SP followed by a TAB, unresolved merge conflict</title>
		<description>I have been using Git from last few days, and faced following errors while committing:

1) Trailing whitespace
2) Indent SP followed by a TAB
3) Unresolved merge conflict

The first error "Trailing whitespace" is because of carriage-return/line-feed(windows style line feed/end). To resolve this problem comment following lines(58-60) in .git/hooks/pre-commit file:
[source:c]
  if (/\s$/) ...</description>
		<link>http://webonrails.com/2008/04/23/git-error-trailing-whitespace-indent-sp-followed-by-a-tab-unresolved-merge-conflict/</link>
			</item>
	<item>
		<title>Rails Plugin Annotate Models For Spec And Spec Fixtures</title>
		<description>I have been using "Annotate Models" rails plugin written by Dave Thomas since I found it around one and half year ago. It really helps while writing fixtures. But if you use RSpec you might miss schema info at the top of your rspec fixture file as I do. So, ...</description>
		<link>http://webonrails.com/2008/04/23/rails-plugin-annotate-models-for-spec-and-spec-fixtures/</link>
			</item>
	<item>
		<title>Git - Fast Version Control System</title>
		<description>Git is getting popular in Rails community these days, as there were being many changes in rails to support Git.
Git is a open sourse fast version controller system. It was originally designed by Linus Torvalds to handle large projects. It was inspired by Monotone & BitKeeper. It is a distributed ...</description>
		<link>http://webonrails.com/2008/02/15/git-fast-version-control-system/</link>
			</item>
	<item>
		<title>Migration: Adding/Removing columns are now much easier</title>
		<description>You may have noticed by now, that in Rails 2.0 changeset 7422, you can specify columns you want to add/remove in your migration by passing attribute:type pairs to the migration generator. 

For example, lets assume that we need to add a column 'role' in users table(User model). In this case ...</description>
		<link>http://webonrails.com/2008/01/23/migration_adding_removing_columns_are_now_much_easier/</link>
			</item>
	<item>
		<title>Ajax based online ruby API documentation</title>
		<description>http://www.rubybrain.com/ </description>
		<link>http://webonrails.com/2008/01/14/ajax-based-online-ruby-api-documentation/</link>
			</item>
	<item>
		<title>Ruby Script for SVN commit notification with log message, list of updated files and readable colored SVN Diff</title>
		<description>Some days ago I wrote a post about "SVN commit notification" which uses a perl script for sending commit notification with svn diff by mail. In this mail you can find svn diff from the last committed revision. I used to love this mail, soon I realized that it is ...</description>
		<link>http://webonrails.com/2008/01/14/ruby-script-for-svn-commit-notification-with-log-message-list-of-updated-files-and-readable-colored-svn-diff/</link>
			</item>
	<item>
		<title>Presented at BarCampDelhi3</title>
		<description>Yesterday, I attended third barcamp in delhi. I presented a session "Deploying rails application in EC2".  It was an amazing experience. We talked about EC2 and I had given a demo "How to deploy rails application on EC2".

I personally didn't like some sessions. There were people from some company ...</description>
		<link>http://webonrails.com/2007/12/10/presented-in-barcampdelhi3/</link>
			</item>
	<item>
		<title>Third Delhi BarCamp</title>
		<description>I have a great news for you guys. We are planning Third BarCamp on Saturday, 8 December 2007, in Delhi. 
Venue is not finalize yet, We have some options and shortlisting the final one.
We are also waiting for someone to take the sponsorship ;-)
Some people have proposed their sessions, I ...</description>
		<link>http://webonrails.com/2007/11/21/third-delhi-barcamp/</link>
			</item>
	<item>
		<title>Two best online API/Rails API</title>
		<description>Today I found two best API sites. One is http://www.gotapi.com.
This site provides APIs of almost all languages.

The other API site which is only focused on Rails is http://www.railsbrain.com/. I like this most. You can also download this API. It is AJAX based fast, useful. </description>
		<link>http://webonrails.com/2007/11/05/two-best-online-api-rails-api/</link>
			</item>
	<item>
		<title>Single Table Inheritance validates_uniqueness_of Problem</title>
		<description>Consider a case of STI where:

[source:ruby]
class User < ActiveRecord::Base
  validates_uniqueness_of :name
end

class Customer < User

end

class Manager < User

end
[/source]

Now try following at console:
[source:ruby]
User.create(:name => "Akhil Bansal")
Manager.create(:name => "Akhil Bansal")
Customer.create(:name => "Akhil Bansal")
[/source]

This will let you create three records in users table with same name, validates_uniqueness_of written in User class has no ...</description>
		<link>http://webonrails.com/2007/10/26/single-table-inheritance-validates_uniqueness_of-problem/</link>
			</item>
	<item>
		<title>Running Rails Application on https with pound</title>
		<description>Hours ago, I posted about, "How to deploy rails application with pound as a Balancer".

Lets run rails application on https with pound. For that your machine should have:

* Pound installed with ssl support
* Pound and mongrels running
 
Now, First of all we need a ssl certificate, that can be generate ...</description>
		<link>http://webonrails.com/2007/09/13/running-rails-application-on-https-with-pound/</link>
			</item>
	<item>
		<title>Deploying rails application with pound as a Balancer</title>
		<description>Now a days Apache + mod_proxy + mongrel_clusters, Lighttpd + Mongrel cluster and Nginx + mongrel cluster are well known for deploying rails applications. 

You can also deploy your rails application with pound(a reverse proxy, load balancer and HTTPS front-end for Web server). 

First you need to setup mongrel_clusters for ...</description>
		<link>http://webonrails.com/2007/09/13/deploying-rails-application-with-pound-as-a-balancer/</link>
			</item>
</channel>
</rss>
