I have an object @temp in my view and want to edit the field @temp.name in_place so i used the in_place_edit gem from ruby.
<td><%= in_place_editor_field :temp, :name, {}, :rows => 1 %></td>
The following code is created by that
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})
When visiting the site in my browser I can not click the editable field and get the following error at the line with the Ajax Code:
Uncaught TypeError: undefined is not a function
someone an idea what I have to do now?