title: Rails 3.1, JS, Simple Alert not showing up
body: <p>My experience with rails and Javascript is very limited. </p>
  
  <p>I am trying to pop up a basic alert function to make sure everything is in working order however its not working therefor things are not in working order!</p>
  
  <p>When the index page is loaded run this code every single time:</p>
  
  <pre><code>$(document).ready(function() {
   alert('Welcome to index!');
  });
  </code></pre>
  
  <p>That code is currently located in a file in assets/javascript/default.js</p>
  
  <p>In my application.html.erb, in the header I have added </p>
  
  <pre><code>  &lt;%= javascript_include_tag :default %&gt;
  </code></pre>
  
  <p>and in my controller under index format I have also added </p>
  
  <pre><code>format.js { render 'default.js'}
  </code></pre>
  
  <p>when I run the page with firebug under scripts it does see </p>
  
  <pre><code>&lt;script type="text/javascript" src="/assets/default.js?body=1"&gt;
  </code></pre>
  
  <p>although I dont understand the body=1 part yet, and under scripts it does show the code, so clearly the browser can see the code however for some reason is not executing it.</p>
  
  <p>In my gems i have jquery-rails(1.0.19) and bundle install has already been run.</p>
  
  <p>I have tried that page with firefox, internet explorer, and chrome to no avail. and I apologize if I have already missed such a question.</p>
  
  <p>I thank you all for your time. </p>