title: Uncaught ReferenceError: Foundation is not defined
body: <p>I am running into an several errors saying, "Uncaught ReferenceError: Foundation is not defined". They happen into the following:</p>
  
  <pre><code> - foundation.abide
   - foundation.accordion
   - foundation.clearing   
   - foundation.dropdown
   - foundation.equalizer
   - foundation.interchange   
   - foundation.joyride
  </code></pre>
  
  <p>In console, I typed Foundation, and got: <code>Object {name: "Foundation", version: "5.5.1", media_queries: Object, stylesheet: CSSStyleSheet, global: Object…}global: Objectinherit: function (scope, methods) {init: function (scope, libraries, method, options, response) {init_lib: function (lib, args) {libs: Objectmedia_queries: Objectname: "Foundation"patch: function (lib) {rtl: falsescope: documentset_namespace: function () {stylesheet: CSSStyleSheetutils: Objectversion: "5.5.1"__proto__: Object</code>.</p>
  
  <p>I also verified that jQuery is working by using the console: $(document) resulting in [>#document].</p>
  
  <p>I am running a Rails (4.2.1) stack on Ruby (2.0.0), and have been following the basic tutorial/walkthrough on zurb/foundation-rails.</p>
  
  <pre><code>rails g foundation:install
  </code></pre>
  
  <p>I have also tried RailsApps/rails_layout gem but am getting the same error.</p>
  
  <pre><code>rails generate layout:install foundation5 --force
  </code></pre>
  
  <p>The only thing I can think of is that I am defining Foundation after all the functions that needed it (abide, accordion, etc) but that shouldn't happen because the skeleton code is from the template generators. I'm not experienced in RoR or in the structure of Foundation to know if that's the case, so I was wondering where I can go about finding the error to this.</p>
  
  <p>Or if this was just a client issue with my Mac.</p>