title: How do I enable Live Syntax Checking in the Ace Editor
body: <p>Ace Editor has <a href="https://github.com/ajaxorg/ace/wiki/Syntax-validation" rel="nofollow">Live Syntax Checking</a>, which can check code as it's being typed for syntax errors.  </p>
  
  <p>I have a Rails 3.2 site with the Ace file included on each coding page. I added a require statement to the javascript to tell Ace where the worker file is, but it's still not working. How do I get Live Syntax checking to work?</p>
  
  <p>Each coding page includes:</p>
  
  <pre><code>&lt;%= javascript_include_tag "ace-src/ace.js" %&gt;
  &lt;%= javascript_include_tag "ace-editor" %&gt;
  </code></pre>
  
  <p>The Ace files are located in the ace-src folder. I aded this code to ace-editor.js:</p>
  
  <pre><code>require("ace/config").set("workerPath", "/assets/ace-src");
  </code></pre>