I am using best_in_place gem for my Rails 3.2.1 application. I have no error in my development. When I try to run the application in production, I am getting a script error
$(".best_in_place").best_in_place is not a function in my browser.
In my view page, I have the following code
<%= stylesheet_link_tag "best_inplace", "jquery-ui-1.8.20.custom" %>
<%= javascript_include_tag "application", "jquery.dataTables.min" %>
<%= best_in_place @user, :description, :type => :textarea %>
<script>
jQuery(".best_in_place").best_in_place();
</script>
Me too had this problem some mins ago, solved by moving the
require best_in_place
to the end, other places won't work. Weird but works anyway.This is the
application.js
manifest