in_place_editor_field is one of the old school helper so it's expecting the first parameter to be the name of an instance variable.
A quick and dirty fix would be to put <% @task_node = task_node %> on the line above and change it to
<%= in_place_editor_field 'task_node', 'description' %>
Well, this gets me part of the way there. (although I have to admit,
I don't understand why.)
However, the HTML generated is:
<span class="in_place_editor_field"
id="#<Task:0x2b2d504701f0>_description_4_in_place_editor"></span><script
type="text/javascript">
//<![CDATA[
new Ajax.InPlaceEditor('#<Task:0x2b2d504701f0>_description_4_in_place_editor',
'/tasks/set_%23%3CTask:0x2b2d504701f0%3E_description/4',
{callback:function(form) { return Form.serialize(form) +
'&authenticity_token=' +
encodeURIComponent('de08c07c32d0105cd81841fc23d2b1ef4d4ea89f') }})
//]]>
</script>
Why doesn't it put the current value of the description in between the
span tags? (since there is no place to click, it isn't very
helpful....)
Well, this gets me part of the way there. (although I have to admit,
I don't understand why.)
it looks like you;ve still got <%= in_place_editor_field task_node,
'description' %> in your form instead of <%= in_place_editor_field
'task_node', 'description' %>