Code Sample for RoR