SpellingBee gem released

I came across Peter Norvig's article How to Write a Spelling Corrector the other day and felt that packaging it as a ruby gem would be a nice way to learn how to create gems. The gem gives you a SpellingBee class that can suggest corrections for mis-spelled words based on the frequency of words [...]

Ruby and rails need to shed that “arrogant” tag

When I entered the world of ruby, I knew nothing about it. I was hired to develop web applications, and it was after I started working that my employers chose ruby on rails as the platform for the project I was to work on. I never had to make a choice about what language or [...]

Rails: Avoid multiple level nested resource routes

While generating RESTful routes in rails, it is easy to get carried away and generate many levels of nested resources for every level of has_many associations. For instance, I recently wrote something like this in my routes file: # in config/routes.rb map.resources :first_resources do |first| first.resources :second_resources do |second| second.resources :third_resources end end Here FirstResouce [...]

Useful ruby links and resources for newbies

Earlier this week at work I made a presentation for the non-rubyists about how to get started with ruby. There was plenty of discussion about the basics of ruby and how a newbie can get started. I had made a list of useful books and websites that people could use to get started with Ruby [...]

RubyConf India 2010

Those of you following this blog or my twitter stream probably know already that I spent last weekend attending RubyConf India in Bangalore. The conference was a huge success and I'm sure it helped inspire a lot of newbies like me. Day 1 Along with the rest of the team from Foradian, I took a [...]