title: Uncaught ReferenceError: $ is not defined rails
body: <p>I'm trying to add Froala editor to my project.</p>
  
  <p>Problem only on production server(on localhost it works fine)
  I'm using rails 4.1.0
  In gemfile i'm have</p>
  
  <pre><code>gem 'jquery-rails'
  </code></pre>
  
  <p>In my assets/javascripts/application.js:</p>
  
  <pre><code>//= require jquery
  //= require jquery_ujs
  //= require foundation
  //= require turbolinks
  //= require_tree .
  //= require modernizr
  //= require froala_editor.min.js
  </code></pre>
  
  <p>In new.html.erb file:</p>
  
  <pre><code>&lt;div class="row"&gt;
    &lt;%= form_for :article do |f| %&gt;
      &lt;p&gt;
          Title&lt;br&gt;
          &lt;%= f.text_field :title %&gt;
      &lt;/p&gt;
      &lt;p&gt;
          Content&lt;br&gt;
      &lt;%= f.text_area :text, :id=&gt;'content' %&gt;
      &lt;p&gt;
      &lt;%= f.submit %&gt;
      &lt;/p&gt;
    &lt;% end %&gt;
  &lt;/div&gt;
  &lt;script&gt;
    $(function() {
      $('div#content').editable({
        inlineMode: false
      })
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>In application.html.erb:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt; 
      &lt;title&gt;&lt;%= content_for?(:title) ? yield(:title) : "foundation-rails" %&gt;&lt;/title&gt;
      &lt;%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' =&gt; true %&gt;
      &lt;%= javascript_include_tag "vendor/modernizr" %&gt;
      &lt;%= javascript_include_tag "application" 'data-turbolinks-track' =&gt; true %&gt;
      &lt;%= csrf_meta_tags %&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;%= yield %&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In this case result is:</p>
  
  <pre><code>Uncaught ReferenceError: $ is not defined
  </code></pre>
  
  <p>If i'm adding a string:</p>
  
  <pre><code>&lt;script src="//code.jquery.com/jquery-1.11.2.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>result is:</p>
  
  <pre><code>Uncaught TypeError: undefined is not a function
  </code></pre>