1
我有一個對象@temp在我看來,想要編輯的字段@ temp.name in_place所以我用紅寶石的in_place_edit寶石。未定義是不是在軌功能3 in_place_edit
<td><%= in_place_editor_field :temp, :name, {}, :rows => 1 %></td>
下面的代碼是由
new Ajax.InPlaceEditor('temp_name_5_in_place_editor', '/temps/set_temp_name?locale=en&id=5', {callback:function(form) { return Form.serialize(form) + '&authenticity_token=' + encodeURIComponent('OX1qBv+oX0BgdF7uq7UM5rzGacmY/9ZLerE6osA6HnI=') }, rows:1})
創建當訪問瀏覽器中的網站,我不能在與Ajax代碼行單擊編輯字段並出現以下錯誤:
Uncaught TypeError: undefined is not a function
人一個想法是什麼我現在要做的?