trying to update a div from a link

I want to update the content of a div by clicking on a link this way:
this is what I have in my list.rhtml:
<%= link_to ‘Edit’,html_options={:onClick => “new Ajax.Updater(‘editforum_#{
}’,’/forums/testy” + “?id=’#{},{asynchronous:true, evalScripts:true});”} %>

<%= render :partial => “testy” %>

<% if params[:id].nil?%>
<%= ‘nil’ %>
<% else %>

<%= ‘not nill’ %>
<% end %>

but nothing happens

is this the wrong way to deal with the problem?

thanx in advance


ok found it, link_to_remote :slight_smile: