내 응용 프로그램에서 작동하도록 best_in_place를 얻으려고합니다. best_in_place 내보기에 기본적으로 나를 위해 작동 :best_in_place 편집기가 jquery와 작동하지 않는 이유는 무엇입니까?
<%= best_in_place @user, :first_name %>
순간 나는 JQuery와 - UI를 가져 아래의 스크립트를 사용하여, 그것은 단순 텍스트로 나타납니다 즉, 작동을 멈 춥니 다.
<script src="/js/jquery-1.9.1.js"></script>
<%= best_in_place @user, :first_name %>
HTML 소스는 공존 JQuery와 - UI를하고 best_in_place하는 방법 중 하나
<span class='best_in_place' id='best_in_place_user_1_first_name' data-url='/users/1' data-object='user' data-attribute='first_name' data-type='input'>Ed</span>
어떤 생각을 변경하지 않는 이유는 무엇입니까? 다만 경우에
내 컨트롤러 : JQuery와 여러 번 포함되고있는 경우가 있습니다
def edit
@user = User.find(params[:id])
end
def update
@user = User.find params[:id]
respond_to do |format|
params[:user].delete(:password) if params[:user][:password].blank?
if @user.update_attributes(params[:user])
flash[:notice] = "Profile updated"
format.html { redirect_to(@user, :notice => 'User was successfully updated.') }
format.json { respond_with_bip(@user) }
sign_in @user
else
format.html { render :action => "edit" }
format.json { respond_with_bip(@user) }
sign_in @user
end
end
end
명확히하기 : jQuery 또는 _jQuery-ui_를 추가하는 것과 관련된 문제입니까? 당신이 참조하고있는 스크립트는 jQuery이지만, 당신은 jQuery-ui를 인용하고있다. – zeantsoi
포인트를 내 주셔서 감사합니다 - 내 나쁜, jquery, 아니 ui 말을 의미 – Venomoustoad