search for: replace_html2

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

Did you mean: replace_html
2006 Jul 03
1
plugin to add method to rjs "page" object
Hi, I would like to add a new method to the rjs "page" object through a plugin. For a simple example, suppose I want to add the following which is really just an alias for the usual page.replace_html. def replace_html2(id, *options_for_render) call ''Element.update'', id, render(*options_for_render) end How can I stitch this new method into the "page" object? Thanks, Peter