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_#{
c.id}'',''/forums/testy" +
"?id=''#{c.id},{asynchronous:true,
evalScripts:true});"} %>
<div id="editforum_<%= c.id %>">
<%= render :partial => "testy" %>
</div>
_testy.rhtml:
<% 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
Pat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---