I need to color different countries in the world based on a Range (eg: population)
Red : > 100 million
Green: 50 - 99 million
Ash : < 50 million
How can this be done.
My development environment is Rails3. Please help
I will attach a sample image how the map should look

Use Google Charts API, not Google Maps API. It has a chart type of map which will allow you to very easily plot data by country and color-code them, e.g.
http://code.google.com/apis/chart/interactive/docs/gallery/geochart.html#Example