title: sails.js ejs jquery include trouble
body: <p>I think this may be duplicate'ish of 24510862/cannot-running-jquery-with-ejs-in-sails-js.</p>
  
  <p>This is however a general inquiry with regards to asset linking and ejs views, it does not pertain to jQuery as such. Please let me know what additional information is needed to trace the issue, and how to retrieve the log information if it's not trivial. </p>
  
  <p>I am building a sails.js application with some jQuery effects, but I think i may be doing the asset linking wrong. I created the project with --linker and dropped jquery.js in assets\linker\js folder. I edited the gruntfile and moved the jQuery reference as adviced in other posts, and sails automatically adds it to layout.ejs as it should. However, jQuery is not available to my ejs views. </p>
  
  <p>This code works, but if I remove the explicit reference to jQuery it goes $ is not defined. </p>
  
  <pre><code>\views\wizard\step1.ejs
  ----------------- 
  
  &lt;h1&gt;Step 1 : Select Asset&lt;/h1&gt;
  
  &lt;div id="step1container" class="container step1 wizpage"&gt;
  Meh
  &lt;/div&gt; 
  
  &lt;script src="/linker/js/jquery.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
      $(document).ready(function() {
          $("#step1container").fadeIn(1000);
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Adding jQuery reference to all the ejs files seems wrong, shouldn't sails hookup what is needed for this scenario? I found some articles suggesting to inject jquery manually using the EJS object, but that does not seem right either, shouldn't all ejs views generally have what is linked, available? </p>
  
  <p>MANY thanks for any hints or suggestions</p>