I was hoping the following code would generate a new turing everytime
it was click. But it renders everything the first time the page is
rendered and replaces the image once.. but also has already set to
session[turing] to the last call to createturing.. so the first image
and session[turing] don;t match!!! I thought moving to a partial
would hold off the execution of the partial until the link was
clicked... guess not!!!
how should i implement this?
<div id="turing"><%= render(:partial => "createturing" ) %></div>
<%= link_to_function 'refresh' do |page|
page.replace_html 'turing', render(:partial => 'createturing')