Add rails template formula