Recent Posts

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

Aliased method retains super pointer

1 minute read

I noticed an interesting quirk of the alias method. Normally, if we call super from a method, it calls a method with the same name on the super class. Howeve...

Blog is online

less than 1 minute read

My new blog is finally up and running. The most difficult part about installing mephisto was installing codehighlighter to get syntax highlighting of ruby co...