search for: partial_handl

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

Did you mean: partial_handler
2006 Apr 05
1
New AJAX function: remote_replace_with_partial() <-- write less code
..." } string = link_to_function(link, "update_page_element(''#{options [:update]}'', ''#{options[:controller]}'', ''#{options[:partial]}'', ''# {param_string}'');") string end application.rb file: def partial_handler string = render_to_string :partial => params[:partial] render :inline => string end javascript code: (this can be placed in a JS file or in your template) <%= javascript_tag "function update_page_element(element_id, controller ,partial_file, params) { new Ajax.Upd...