log object snippet for RoR