snantz
1
I have this link which when clicked will loop and render more links and
a form from a partial inside of “myDiv”:
<%= link_to_remote ‘MyLink’ . . . ., :update =>“myDiv” %>
What I am trying to do is have a form_remote_tag that re-renders the
list of stuff in “myDiv” when something is added but it doesn work.
form_remote_tag :url => { :action =>. . .}, update => ‘myDiv’
Does it not work because it is inside the div that it is trying to
render or is there another reason that it totally eluding me? Thanks,
-S
snantz
2
On 2/1/08, Shandy N. [email protected] wrote:
What I am trying to do is have a form_remote_tag that re-renders the
list of stuff in “myDiv” when something is added but it doesn work.
form_remote_tag :url => { :action =>. . .}, update => ‘myDiv’
Does it not work because it is inside the div that it is trying to
render or is there another reason that it totally eluding me? Thanks,
I would drop the :update and use an rjs template with a
page.replace_html call instead.
–
Greg D.
http://destiney.com/