updated ruby templating.