best_in_place在Heroku上不起作用,并且没有错误出现

时间:2019-07-20 03:13:36

标签: javascript ruby-on-rails-5 best-in-place

我将不胜感激。这是该项目的存储库:https://github.com/felixpro/ars-reclama

best_in_place在开发生产中工作正常,但是当我将其部署到Heroku时,它不起作用。当我单击best_in_place输入时,什么也没发生。

谢谢

aplication.js

//= require jquery
//= require jquery_ujs
//= require jquery.purr
//= require best_in_place.purr

//= require best_in_place
//= require best_in_place.jquery-ui
//= require rails-ujs
//= require activestorage
//= require turbolinks
//= require_tree .

$(document).ready(function() {
  jQuery(".best_in_place").best_in_place();
});

gemfile

gem "jquery-ui-rails"
gem "best_in_place"
gem 'jquery-rails'

gem 'draftsman', '~> 0.7.1'

show.html.erb

       <h1 class="name">
          <%= best_in_place @customer, :name%>
        </h1>
        <div class=" space email display_box">
          <%=image_tag("envelope.png")%>
          <p><%= best_in_place @customer, :email %></p>
        </div>
        <div class=" space doc display_box">
          <%=image_tag("doc.png")%>
          <p><%= best_in_place @customer, :doc %></p>
        </div>

0 个答案:

没有答案