Open flash chart and ajax

I want to refresh a graph For that what should I do.The following is
an example from the site
My controller code like

def dashboard
@graph =
open_flash_chart_object(600,300,"#{request_summary_graph_path}", true)

def draw_summary_graph
g =
g.title( ‘Users vs. Ram - 24h statistics’, ‘{color: #7E97A6;
font-size: 20; }’ )
etc etc…
render :text => g.render


and my view (dashboard.html.erb ) like

<%= link_to_remote 'Refresh', {:url => request_summary_graph_path}, :update => "test_div_this" %>
<%= @graph %>
     What i am trying to do when clicking on Refresh link the

portion inside div “test_div”
refreshed But this does not happen Please help

Thanks in advance

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs