title: Rails: Uncaught ReferenceError: ShopifyApp is not defined
body: <p>I have a Shopify app built on Rails. Getting this error:</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: ShopifyApp is not defined</p>
  </blockquote>
  
  <p>In reference to:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    ShopifyApp.ready(function(){
      ShopifyApp.Bar.initialize({
        title: "Groupie",
        icon: "&lt;%= asset_path('favicon.ico') %&gt;"
      });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm using the <a href="https://github.com/Shopify/shopify_app" rel="nofollow">shopify_app gem</a>. I've looked around for a while and can't figure out how to load it.</p>