title: Symfony, twig forms, submitting through html form action path
body: <p>I was wondering is there a way I can submit into the database by using a path that will link to an action in a controller? I have my form in my shoe.html.twig template: </p>
  
  <pre><code>{ % if shoe is defined % }
  &lt;form action="{{ path('update_shoe', { 'shoeid' : shoe.id }) }}" method="POST"&gt;
     &lt;input type="text" name="color" value="{{shoe.color}}"&gt;&lt;br /&gt;
     &lt;input type="text" name="brand" value="{{shoe.brand}}"&gt;&lt;br /&gt;
     &lt;input type="text" name="heel" value="{{shoe.heel}}"&gt;&lt;br /&gt;
     &lt;button type="submit" name="submit"&gt;Update&lt;/button&gt;
  &lt;/form&gt;
  { % endif % }
  </code></pre>
  
  <p>And the path goes to the controller in this way:</p>
  
  <pre><code>/**
  * @Route("/updateshoes/{shoe_id}", name="update_shoe")
  * @Method("PUT")
  * @Template()
  */
  public function updateShoeAction($shoeid) {
        //find the shoe by its id
        //update into database
  }
  </code></pre>