Review: The Rails 3 Way (Obie Fernandez)

Often enough in the Rails community you hear people saying that following the Rails way of doing things will make life much easier. As the title suggests, this is the book that teaches you how to develop Rails 3 applications in "the Rails way". This book is not for beginners. Readers should at least know [...]

Review: Eloquent Ruby (Russ Olsen)

If you are new to Ruby programming, Eloquent Ruby should be the book you read right after you finish your introductory Ruby book. It's not a beginner's tutorial, but with a little background on Ruby, it would be easy to follow. This is one of the better programming books I've read. It has plenty of [...]

Using Haml with Rails

I have always used erb for my Rails templates, but today I decided to try HAML. I was pleasantly surprised by how little work there is to get it to work. First add the following line to the Gemfile and run bundle install. gem 'haml' Let's suppose this is the ERB code for the application [...]

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 [...]

Bukluv enters beta

Bukluv is the idea for an application that I, along with Mohammed Aslam, came up with a few months ago. It is a social networking site for book lovers and allows registered users to post short reviews that are limited to 250 characters. We've been playing around with a very basic version of the app [...]