I am new to using AJAX in Rails (I know ... I know ...), and I am sure that I am doing something wrong, maybe just a wrong call or something else. But I hunted and cannot find him.
In any case, I quickly render (this works correctly), and then I want to update it with an AJAX call. Here is what I thought would work:
<div id="two_on_two"><%= render :partial => "quickread" %></div> <p><%=link_to_remote "load two new stories", :url => {:partial => 'quickread'}, :update => 'two_on_two' %></p>
which just deletes the page (quick flash, and then just a blank browser window). If I switch from: partial to: the action in this AJAX call, then it dynamically loads the "codeless template" in this dvd div.
Itβs clear that thereβs something easy, Iβm absent here, right?
Thank you very much!
source share