title: Why is my Symfony route is not working?
body: <p>I made a new Symfony2 bundle and deleted the Acme bundle.</p>
  
  <p>Then I created a new Controller (<code>MainController.php</code>):</p>
  
  <pre><code>&lt;?php
  namespace My\BlogBundle\Controller;
  
  class MainController extends Controller
  {
      /**
       * @Route("/", name="index")
       * @Template()
       */
      public function indexAction()
      {
  
          return array();
      }
  </code></pre>
  
  <p>And a simple view: (<code>Main/index.html.twig</code>) which only contains a <code>hello</code>. My routing.yml is empty. When I run the whole project I get:</p>
  
  <pre><code>No route found for "GET /"
  404 Not Found - NotFoundHttpException
  1 linked Exception: ResourceNotFoundException »
  </code></pre>
  
  <p>What is wrong here and how to solve it?</p>
  
  <p>Here is my routing debug:</p>
  
  <pre><code>\Symfony&gt;php app/console router:debug
  [router] Current routes
  Name                     Method Pattern
  _wdt                     ANY    /_wdt/{token}
  _profiler_search         ANY    /_profiler/search
  _profiler_purge          ANY    /_profiler/purge
  _profiler_info           ANY    /_profiler/info/{about}
  _profiler_import         ANY    /_profiler/import
  _profiler_export         ANY    /_profiler/export/{token}.txt
  _profiler_phpinfo        ANY    /_profiler/phpinfo
  _profiler_search_results ANY    /_profiler/{token}/search/results
  _profiler                ANY    /_profiler/{token}
  _profiler_redirect       ANY    /_profiler/
  _configurator_home       ANY    /_configurator/
  _configurator_step       ANY    /_configurator/step/{index}
  _configurator_final      ANY    /_configurator/final
  </code></pre>
  
  <p>I also cleared the cache with no success.</p>
  
  <p>Here is the routes.yml:</p>
  
  <pre><code>my_blog:
      resource: "@MyBlogBundle/Resources/config/routing.yml"
      prefix:   /
  </code></pre>
  
  <p>and the routing.yml in <code>MyBlogBundle/Resources/config/routing.yml</code> is empty.</p>