I need to use page.insert_html inside a partial that rendered and
displayed by using page.insert_html.
This is because a form has a inner form that is called dynamically and
the inner form again has a form.
i.e. an event has many eventdays and an eventdays has many speakers.
The part of code in _eventday.rhtml is as follows.
<div class = "eventday">.
<div id = "speakers"><%render
<b><%=link_to_function "Add a Speaker" do |page1|
The above partial is called as follows# code in new.rhtml
<div id = "eventdays"><%=render
<b><%=link_to_function "Add an Event Day" do |page|
I am unable to get the form working but as soon as i remove the
page.insert_html in _eventday.rhtml i do not get error but ofcourse the
innermost form isnt displayed.
Please advise what needs to be done to solve the problem.