Topic: Rendering templates and within partials

My Problem:

I am writing a project management app.  On my /projects/list page I call a render_partial for each project.  Each project contains a list of tasks that I want to be editable and sortable.  Trying to figure out the javascript is too time consuming so I want to just have a toggle that fills a DIV tag with the list in an editable way and a sortable way.  I am assuming I can make a template called tasks_sortable.rhtml and tasks_editable.rhtml.

So, essentially I want to render a template that will render a partial.  How?

[code=_project.rhtml]

...
<div id="project_task_list[<%=project.id%>]">
    <div id="task_list_display[<%=project.id%>]">
        #RENDER EITHER LIST DISPLAY HERE
    </div>
Sort | Edit #These will be links to toggle which template gets populated into the DIV#task_list[]
</div>
...
[/code]


[code=tasks_sortable.rhtml]


<div id="task_list_<%=project.id%>">
    <%= render(:partial => "tasks/task", :collection => project.tasks) %>
</div>

<%= sortable_element 'task_list_'+project.id.to_s,
    :url => { :action => "sort", :id => project.id },
    :complete => visual_effect(:highlight, 'task_list_'+project.id.to_s),
    :update => 'test'
%>
[/code]


[code=tasks_editable.rhtml]


<div id="task_list_<%=project.id%>">
    <%= render(:partial => "tasks/task_editable", :collection => project.tasks) %>
</div>
[/code]


Thanks in advance!!!

Jason