Change form_for args to @task, remote: true