Rails example fix