title: Send a post parameter with path
body: <p>I have a list of demands, that I can remove some, so I have created a path for every demand like that:</p>
  
  <pre><code>&lt;a href="{{ path('etudiant_suprimer_demande',{'id':demande.id} )}}
  </code></pre>
  
  <p>And I have a controller like that:</p>
  
  <pre><code>class EdudiantController extends Controller
  { //codes
    public function suprimerdemandeAction($id){
  
    //  echo $id;
      $em = $this-&gt;getDoctrine()
          -&gt;getEntityManager();
      $demande = $em-&gt;getRepository('AcmeEstmSiteBundle:Demande')
          -&gt;find($id);
      if ($demande == null) {
          throw $this-&gt;createNotFoundException('Demande[id='.$id.']inexistant');
      }
  
      if ($this-&gt;get('request')-&gt;getMethod() == 'POST') {
          $this-&gt;get('session')-&gt;getFlashBag()-&gt;add('info', 'Demande bien supprimée');
          return $this-&gt;redirect( $this-&gt;generateUrl('acme_estm_site_espace_etudiant'));
  
      }
  
      //return $this-&gt;render('SdzBlogBundle:Blog:supprimer.html.twig',array('demande' =&gt; $demande));
      return new Response();
  }
  </code></pre>
  
  <p>And the routing is:</p>
  
  <pre><code>etudiant_suprimer_demande:
      path:     /profile/espace/suprimerdemande/{id}
      defaults: { _controller: AcmeEstmSiteBundle:Edudiant:suprimerdemande }
      methods: POST
  </code></pre>
  
  <p>What I want is do not show the id of demands in the URL, that means I want this action with a post method but I have this error:</p>
  
  <blockquote>
    <p>No route found for "GET /profile/espace/suprimerdemande/3": Method Not Allowed (Allow: POST)</p>
  </blockquote>