2013-09-03 7 views

답변

3

Gemfile :

gem "best_in_place" 

응용 프로그램/자산/자바 스크립트/application.js :

//= require jquery 
//= require jquery-ui 
//= require jquery.purr 
//= require best_in_place 

응용 프로그램/뷰/일정/index.html.haml :

%table 
    - @schedules.each do |s| 
    %tr 
     %td= best_in_place s, :name 
:javascript 
$(document).ready(function() { 
    /* Activating Best In Place */ 
    jQuery(".best_in_place").best_in_place(); 
}); 
+0

안녕하세요, 다음 질문에 도움을 주시기 바랍니다. http://stackoverflow.com/questions/30007030/datatables-with-best-in-place-not-allowing-updating – Sauron