$(document).ready(function() - don't work
<p>I am using Rails &amp; jQuery.</p>

<p>Here is HTML which I get:</p>

<pre><code>&lt;head&gt;
  &lt;title&gt;Some&lt;/title&gt;
  &lt;script src="/javascripts/jquery.js?1305699774" type="text/javascript"&gt;&lt;/script&gt;

 &lt;script type="text/javascript"&gt;
   alert("2");
   $(document).ready(function() {
      alert("1");
      ....
</code></pre>

<p>When I am refreshing the window I get only one alert message ("2").
Why I didn't get second alert message?</p>

<p><img src="http://i.stack.imgur.com/cKlGK.png" alt="enter image description here"></p>
