RoR snippets