Alex Wayne wrote:
Michael Schuerig wrote: > page << "new Form.Element.Observer('my_select_element'," + > " function(element, value) { ... });"
I think the standard helpers are available in RJS templates so you can probably just do:
page << observe_field(:foo, options_hash)
observe_field wraps <script> tags around the code it generates and I don't think they belong in a text/javascript response.
Michael