Why are you iterating in the action method? The `Model.destroy` method can take an array of ids.