解决方法
我通常会做以下事情:
cd `bundle show rails` # Go to the directory having rails gem content cd .. # Go one level up to the folder having all gems grep -ir escape_javascript * # search for the required text in all files > actionview-4.1.6/lib/action_view/helpers/javascript_helper.rb: def escape_javascript(javascript) > actionview-4.1.6/lib/action_view/helpers/javascript_helper.rb: alias_method :j,:escape_javascript