search for: update_mani

Displaying 1 result from an estimated 1 matches for "update_mani".

Did you mean: update_many
2006 Mar 22
1
Multiple Updates, Multiple Renders, One Ajax Call
The following code snippet allows you to update multiple DOM elements in a single Ajax call in Rails (1.1): # pass in a hash of domid=>template name def update_many(options) render :update do |page| options.each do |k,v| page.replace_html k, render(:partial=>v) page.visual_effect :highlight, k end end end So, if you wanted to update the