title: Symfony 3: An exception has been thrown during the rendering
body: <p>The full error I am getting is this one. </p>
  
  <p><code>An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("id") to generate a URL for route "FooBlogBundle_articles".") in "FooBlogBundle:Article:articles.html.twig".</code></p>
  
  <p>This is the controller, that handles the action:</p>
  
  <pre><code> public function articlesAction($id)
      {
          $em = $this-&gt;getDoctrine()-&gt;getManager();
              $blog = $em-&gt;getRepository('FooBlogBundle:Blog')-&gt;find($id);
  
          if(!$em){
              throw $this-&gt;createNotFoundException('Unable to find blog posti');
          }
  
          return $this-&gt;render('FooBlogBundle:Article:articles.html.twig', ['blog'=&gt;$blog]);
      }
  }
  </code></pre>
  
  <p>and the routing </p>
  
  <pre><code>FlickBlogBundle_articles:
      pattern:  /foo/{id}
      defaults: { _controller: FooBlogBundle:Article:articles }
      requirements:
        _method: GET
        id: \d+
  </code></pre>
  
  <p>Twig and database, are completely normal, no type or problems. But this error is kind of hard to spot, where I have gone wrong.  </p>
  
  <p>EDIT: Including template: </p>
  
  <pre><code>{% extends 'FooBlogBundle::layout.html.twig' %}
  
  {% block body %}
  {{ blog.title }}&lt;br/&gt;
  {{ blog.author }}&lt;br/&gt;
  {{ blog.blog }}&lt;br/&gt;
  {{ blog.tags }}&lt;br/&gt;
  {{ blog.comments }}
  
  {% endblock %}
  </code></pre>
  
  <p>The above template is located in <code>views/article/</code> it extends another templates found at <code>views/</code>
   whic is just </p>
  
  <p><code>{% extends 'FooBlogBundle::layout.html.twig' %}</code></p>