Recent Posts

Flight delay information for United flights

less than 1 minute read

Since I work for a consulting company, I travel for a living. As a result, I’ve taken quite an interest in flight statistics. For example, how often is my fl...

Render partial with collection has hidden counter

less than 1 minute read

When rendering a partial with a collection, it can be useful to know the index of the item currently being rendered. It turns out that rails provides this wi...

Use readline instead of gets

less than 1 minute read

The simplest way to read a line of input is to use the gets method. However, if you try to use the arrow keys when entering text, you will see that this mere...