nicEdit に問題があります。
フレームワークは ruby 2.0.0 / rails 4.0.1
localhost の場合は機能しますが、ページを 2 回アップロードした場合のみです。
しかし、Heroku にデプロイすると、まったく機能しません。
この例を行までたどりました。
../vendor/assets/javascripts の下に niEdit.js があります。
これが私の完全なフォームです:
<%= javascript_include_tag 'nicEdit' -%>
<%= simple_form_for(@recipe) do |f| %>
<%= f.error_notification %>
<div class="field">
<%= f.label "Elige un cromo" %><br />
<%= f.file_field :chrome %>
</div>
<div class="form-inputs">
<%= f.association :user, label_method: :name, collection: User.where(name: current_user.name), :label => "Cociner@" %>
<%= f.association :category, :label => "Categoría", label_method: :plato_category, collection: Category.all %>
<%= f.input :plato %>
<%= f.input :minutos %>
<script type="text/javascript">
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
</script>
<div class="well well-small">
<p>Tejemaneje</p>
<%= f.text_area :tejemaneje, :rows => 10, :style => 'width: 700px' %>
</div>
</div>
<p>
</p>
<%= f.button :submit, "Receta", :class => "btn btn-success" %>
<% end %>
localhost と heroku の両方で完全に機能するには、どうすればよいですか? ありがとう。