title: FOS rest bundle: unable to find template
body: <p>I get the exception: </p>
  
  <blockquote>
    <p>Unable to find template ""</p>
  </blockquote>
  
  <p>The other similar questions didn't help; and weirdly enough it was working fine and then suddenly started giving me this exception.</p>
  
  <p>composer:</p>
  
  <blockquote>
  <pre><code>   "friendsofsymfony/rest-bundle": "0.13.*@dev",
     "jms/serializer-bundle": "0.12.*@dev",
  </code></pre>
  </blockquote>
  
  <p>I'm following <a href="https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Resources/doc/5-automatic-route-generation_single-restful-controller.md" rel="noreferrer">Automatic route generation: single RESTful controller (for simple resources)</a></p>
  
  <p>config:</p>
  
  <pre><code>fos_rest:
      format_listener: true
      routing_loader:
          default_format: json
      view:
          view_response_listener: 'force'
      serializer:
          serialize_null: true
  
  sensio_framework_extra:
      view:    { annotations: false }
      router:  { annotations: true }
  </code></pre>
  
  <p>routing:</p>
  
  <pre><code>sectors:
      type: rest
      prefix: /{v}
      resource: JJ\MainBundle\Controller\SectorsController
  </code></pre>
  
  <p>controller:</p>
  
  <pre><code>/**
   * @RouteResource("Sector")
   */
  class SectorsController extends Controller
  ...
      public function cgetAction()
      {
          return $this-&gt;getSectorIndustryRepo()-&gt;findAll();
      }
  </code></pre>