title: How to render partial.js in rails 3
body: <p>Using rails3 - I have a project with many tasks. I want to use javascript to build the UI for each task. I figured I could display those tasks on the projects show page by rendering a javascript partial for each. I can't get 'tasks/show' to see tasks/show.js.erb Any ideas? </p>
  
  <p>In projects/show.html.erb</p>
  
  <pre><code>&lt;div id="tasks"&gt;
  &lt;%= render(:partial =&gt; "tasks/show", :collection =&gt; @project.tasks) %&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>tasks/show.js.erb</p>
  
  <pre><code>$("tasks").append(new TaskWidget(task.id))
  </code></pre>
  
  <p>I get the errors </p>
  
  <pre><code>ActionView::MissingTemplate in Projects#show 
  
  Missing partial tasks/show with {:handlers=&gt;[:erb, :rjs, :builder, :rhtml, :rxml], :formats=&gt;[:html], :locale=&gt;[:en, :en]} in view paths .... around line #13
  </code></pre>
  
  <p>Thanks</p>