RoR generic sample