title: Nicedit works localhost but not Heroku
body: <p>I have troubles with nicEdit.</p>
  
  <p>Framework is ruby 2.0.0 / rails 4.0.1</p>
  
  <p>When in localhost, works but only if you upload the page twice. </p>
  
  <p>But when deploy in Heroku, it does not work at all.</p>
  
  <p>I followed <a href="http://rorguide.blogspot.mx/2011/03/wysiwyg-editor-for-rails3.html" rel="nofollow">this example</a> up to the line.</p>
  
  <p>I have a niEdit.js under ../vendor/assets/javascripts</p>
  
  <p>Here is my full form:</p>
  
  <pre><code>&lt;%= javascript_include_tag 'nicEdit' -%&gt;
  
  &lt;%= simple_form_for(@recipe) do |f| %&gt;
  &lt;%= f.error_notification %&gt;
  
  &lt;div class="field"&gt;
  &lt;%= f.label "Elige un cromo" %&gt;&lt;br /&gt;
  &lt;%= f.file_field :chrome %&gt;
  &lt;/div&gt;
  
  &lt;div class="form-inputs"&gt;
  &lt;%= f.association :user, label_method: :name, collection: User.where(name: current_user.name), :label =&gt; "Cociner@" %&gt;
  &lt;%= f.association :category, :label =&gt; "Categoría", label_method: :plato_category, collection: Category.all %&gt;
  &lt;%= f.input :plato %&gt;
  &lt;%= f.input :minutos %&gt;
  &lt;script type="text/javascript"&gt;
     bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
  &lt;/script&gt;
  &lt;div class="well well-small"&gt;
    &lt;p&gt;Tejemaneje&lt;/p&gt;
    &lt;%= f.text_area :tejemaneje, :rows =&gt; 10, :style =&gt; 'width: 700px' %&gt;
  &lt;/div&gt;
  
   &lt;/div&gt;
    &lt;p&gt;
    &lt;/p&gt;
  &lt;%= f.button :submit, "Receta", :class =&gt; "btn btn-success" %&gt;
  
   &lt;% end %&gt;
  </code></pre>
  
  <p>What should I do different for it to work fully both on localhost and heroku? Thanks.</p>