In my controller I have a simple "create" method and in the output section, I have:
format.js do @traces = Trace.getLatest render :update do |page| page.visual_effect :highlight, :homeContentPanel page.replace_html :homeContentPanel, :partial => "home/ traceList", :locals => { :traces => @traces}, :layout => false end end
The intent is to, of course, simply updated a div "homeContentPanel" with the results of a partial. The partial that is _normally_ a part of the div anyway.
What I get is a completely odd formatted output. A sample is below.
Try { new Effect.Highlight("homeContentPanel",{}); Element.update("homeContentPanel", " \n \n Time\n Description\n Date Entered
It's as if it's in debug mode.
Thoughts?