title: Symfony2 "Parameter "" for route "" must match "[^/]++" ("" given) to generate a corresponding URL."
body: <p>I have this <strong>routes</strong> file:</p>
  
  <pre><code>indexRechercheZones:
      path:     /gestionzonestechniques
      defaults: { _controller: MySpaceGestionEquipementsTechniquesBundle:GestionZonesTechniques:indexZonesTechnique }
      requirements:
      methods: GET
  
  modifierZones:
      path:     /gestionzonestechniques/modifier/{nom}
      defaults: { _controller: MySpaceGestionEquipementsTechniquesBundle:GestionZonesTechniques:modifierZonesTechnique }
      requirements:
      methods: GET
  
  modifierZones_process:
      path:     /gestionzonestechniques/modifier/process/{nom}
      defaults: { _controller: MySpaceGestionEquipementsTechniquesBundle:GestionZonesTechniques:modifierZonesTechnique }
      requirements:
      methods: POST
  </code></pre>
  
  <p>Now when I want to <strong>proceed</strong> to the <code>indexRechercheZones</code> route, an <strong>error occured</strong>:</p>
  
  <blockquote>
    <p>An exception has been thrown during the rendering of a template
    ("Parameter "nom" for route "modifierZones" must match "[^/]++" (""
    given) to generate a corresponding URL.") in
    MySpaceGestion...sBundle:...:indexZonesTechniques.html.twig
    at line 71.</p>
  </blockquote>
  
  <p>In my twig line 71, I have this <strong>code</strong>:</p>
  
  <pre><code>&lt;a href="{{ path('modifierZones', {'nom': zonetechnique.nom}) }}"&gt;&lt;button class="btn btn-warning btn-xs"&gt;Modifier&lt;/button&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I think that is a regex problem, a problem with the url writing rule for symfony, but I don't how I can fix this error. I have tried some thing like adding this line in my route:</p>
  
  <pre><code>indexRechercheZones:
      path:     /gestionzonestechniques/
      defaults: { _controller: MySpaceGestionEquipementsTechniquesBundle:GestionZonesTechniques:indexZonesTechnique }
      requirements:
          nom:    \d+ 
      methods: GET
  </code></pre>
  
  <p>or like this at the requirements:</p>
  
  <pre><code>requirements:
      nom:    '[a-zA-Z0-9-_\/-\s.^]+'
  </code></pre>
  
  <p>But it does not match. Someone could help?</p>
  
  <p>Thank you...</p>