Both partials below are elements of a table and have the same structure. So I wish to merge these two partials first and then render them to my ajax call. Is this possible?
def refreshprojects
@projects = Project.get(params[:username])
render :partial => "project.elements.data", :locals => {:projects=>@projects }
render :partial => "project.shared.elements.data", :locals => {:projects=>@projects_shared }
end