I am trying to use Javascript to render an .html.erb
partial that itself contains safe Javascript.
<%= render :partial => "tasks" %>
fails to render anything.
<%= escape_javascript( render :partial => "tasks" ) %>
renders the HTML but the javascript is escaped, so it doesn't work.
How can I get both the HTML and its embedded Javascript to render properly?