title: New to symfony 5- Error "No route Found" for Form in PUT method
body: <p>i'm learning to use Symfony right now, and i'm having an issue with the routing system. I'm currently trying to edit a &quot;Pin&quot; using a form. So here is what I have in my controller so far for the update of a &quot;Pin&quot;.</p>
  <pre><code>/**
   * @Route(&quot;/pins/{id&lt;[0-9]+&gt;}/edit&quot;, name=&quot;app_pins_edit&quot;, methods=&quot;GET|PUT&quot;)
   */
  public function edit(Request $request, Pin $pin, EntityManagerInterface $em): Response
  {
  
      
      $form = $this-&gt;createForm(PinType::class,$pin,[
          'method'=&gt;'PUT'
      ]);
  
      $form-&gt;handleRequest($request);
  
  
      if ($form-&gt;isSubmitted() &amp;&amp; $form-&gt;isValid()) {
          
          $em-&gt;flush();
  
          $this-&gt;addFlash('success','Pin successfully updated');
  
          return $this-&gt;redirectToRoute('app_home');
      }
  
      return $this-&gt;render('pins/edit.html.twig', [
          'pin' =&gt; $pin,
          'form' =&gt; $form-&gt;createView(),
      ]);
  }
  </code></pre>
  <p>And the error I have is this one when I try to update a Pin : &quot;No route found for &quot;POST&quot;Method Not Allowed (Allow: GET, PUT)&quot;.</p>
  <p>I'm assuming it's because I wrote &quot;methods=&quot;GET|PUT&quot;&quot; in my route. And this is what I actually need. But I keep having this error.</p>
  <p>PS : With the createForm I have a hidden input in the form like this :</p>
  <pre><code>&lt;input type=&quot;hidden&quot; name=&quot;_method&quot; value=&quot;PUT&quot;
  </code></pre>
  <p>That is supposed to be read by symfony as &quot;I want the put method&quot; but doesn't seem to work.</p>
  <p>Thank you for reading this ! And thank you for helping if you do!</p>
  <p>PS : If you need more information or more code i'll be happy to share it with you.</p>