update rails template