added rails template for update and destroy