Rails not serving assets in development mode
<p>Well it's the first time I set up a Rails app from the beginning and I just created my first view.</p>
<p>When I run the server I get a 404 Not Found error when trying to load the <code>application.js</code> file.</p>
<p><strong>Layout</strong></p>
<pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;%= yield :head %&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;If you're not and Admin you shouldn't be here!&lt;/h1&gt;
    &lt;%= yield %&gt;

    &lt;%= javascript_include_tag 'application' %&gt;
    &lt;% yield :script %&gt;
    &lt;script&gt;

      $(function(){
        alert('Hey')
      })
    &lt;/script&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p><strong>application.js</strong></p>
<pre><code>//= require jquery
</code></pre>
<p><strong>environment/development.rb</strong></p>
<p>...</p>
<pre><code>config.assets.debug = false
config.assets.compile = false
config.assets.digest = true
</code></pre>
<p>...</p>
<p>And when I run on terminal <code>rake assets:precompile</code> I get this error:</p>
<blockquote>
<p>rake aborted!</p>
<p>Don't know how to build task 'assets:precompile'</p>
</blockquote>
<p>What is causing this?</p>