Hi
I have a controller def like
def graph_render
get_flash_chat_objects
respond_to do |format|
format.js do
render :update do |page|
page[:graph_div].replace_html :partial => "summary_graph"
end
end
end
end
So clearly this just accept an ajax request and do the above action
This is working But what I would like to know how can I invoke it from
view without clicking a link or like that
Thanks in advance
Sijo
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---