search for: update_page_el

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

2006 Apr 05
1
New AJAX function: remote_replace_with_partial() <-- write less code
...res the code: application_helper file: def remote_replace_with_partial(link, options = {}, params = {}) ## For passing params ## param_string = String.new params.each {|key,value| param_string << "&#{key}=#{value}" } 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 => param...