configure template to work with rails