# LiveTree in a partial error

**URL:** <https://www.ruby-forum.com/t/livetree-in-a-partial-error/109160>\
**Category:** Rails\
**Created:** [July 11, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/livetree-in-a-partial-error/109160 "2007-07-11T23:50:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dustin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@dustin](https://www.ruby-forum.com/u/dustin)\
**Post date:** [July 11, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/livetree-in-a-partial-error/109160/1 "2007-07-11T23:50:47Z")

</div>

Hello -

I’m having a problem using the Live Tree plugin [1], which is designed  
to create an Ajax-based tree visualization of an acts\_as\_tree  
model. I am embedding the Live Tree in a partial [id =‘goals’], and  
it works fine until I update the partial, such as by calling the  
remote function “Merge”.

When the \_goals.rhtml is loaded, instead of loading the tree in the  
partial, a Live Tree is written over the entire window, without style  
sheets or javascript headers (so its functionality is impaired, and  
the page never finishes loading).

* * *

 \<%= live\_tree(:goal\_tree, { :initial\_data\_root =\> @root, :include\_parents =\> true, :showCheckboxes =\> showCheck, :depth =\> 5, }) %\>

\<%= link\_to\_remote “Merge”, {:url=\>“/event\_trees/merge/  
#{@root.id}”, :submit=\>“goals”,:update =\> ‘goals’,}, {}%\>

* * *

Does anyone have suggestions about what to do here? This problem has  
appeared in the past [2] but was unresolved ☹

Thanks!

Dustin

[1] [RDoc Documentation](http://www.epiphyte.ca/code/live_tree/doc/index.html)  
[2] [http://groups.google.ca/group/rubyonrails-talk/msg/6c01d200d5f3a1c5](http://groups.google.ca/group/rubyonrails-talk/msg/6c01d200d5f3a1c5)
