title: Symfony2: JavaScript doesn't work on Prod environment
body: <p>In Dev enviroment it works perfectly, but when I switch to Prod it doesn't do anything. It looks like it doesn't attach the event listeners (when I inspect elements with Chrome, no event listener is detected where they should). Any ideas? I've cleared both caches and maybe it's important to say that I had copied</p>
  
  <pre><code>_assetic:
  resource: .
  type:     assetic
  </code></pre>
  
  <p>from routing_dev.yml to routing.yml because if I don't I got the following 500 Internal Server Error: </p>
  
  <pre><code>request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Route "_assetic_f582f37" does not exist.")
  </code></pre>