title: Ajax-submit form on "check box onclick ": why this error?
body: <p>I need to have a checkbox which ajax-submits a form.</p>
  
  <p>The following code throws an error "index 112009 out of string". What's
  wrong here?</p>
  
  <pre><code>&lt;% form_remote_tag :url =&gt; { whatever_url } do -%&gt;
  
  &lt;%= check_box_tag 'whatever', nil, whatever, { :onclick =&gt; "#{remote_function('this.form.submit();')}" } %&gt;
  
  &lt;% end -%&gt;
  </code></pre>
  
  <p>Thanks for any help with this!</p>
  
  <p>Tom</p>