amend ruby template file