Ported template to RoR