Changed 'method: :patch' to 'method: :put' for update action in form_for