title: Coffeescript input not disabled on page load
body: <p>I have the following in my view...</p>
  
  <h1>checkbox</h1>
  
  <pre><code>&lt;input id="event_requires_registration" name="event[requires_registration]" type="checkbox" value="1"&gt;
  </code></pre>
  
  <h1>text input</h1>
  
  <pre><code>&lt;input id="event_registration_contact_id" name="event[registration_contact_id]" size="30" type="text" value="25241" class="ui-autocomplete-input" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"&gt;
  </code></pre>
  
  <p>...and this coffeescript:</p>
  
  <pre><code>$ -&gt;
      if $('#event_requires_registration').is ':checked'
          !$('#event_registration_contact_id')[0].disabled
      else
          $('#event_registration_contact_id')[0].disabled
      $('#event_requires_registration').click -&gt;
          $('#event_registration_contact_id').attr 'disabled', !@checked
          return
  </code></pre>
  
  <p>If I check/uncheck the box when editing the page the text input is disabled/enabled as it should be. However, if the box is unchecked, when I load the page, I can still enter text in the input. If the box is unchecked, I want the input disabled when the page loads.</p>