I follow http://railscasts.com/episodes/302-in-place-editing?view=asciicast for text inline editing
gem 'best_in_place'
//= require jquery
//= require jquery_ujs
//= require jquery.purr
//= require best_in_place
//= require turbolinks
//= require_tree .
But when I write
<%= best_in_place product_comment, :description %>
It gives error undefined method `best_in_place' for #<#:0xb43cc3dc>
The only reason why you could get this error (apart from other crazy reasons like dynamic undefining of methods in your code) is that best_in_place
gem has not been loaded. Just restart your server and all should work