在 js.coffee 里如何动态 render :partial => "form_typies"
js.coffee
jQuery -> $('#depot_typies_single').click -> $('#subform').html("<%= escape_javascript(render(:partial => 'form_single', :locals => {:f => f}) %> ")
$('#depot_typies_much').click -> $('#subform').html("<%= escape_javascript( render(:partial => 'form_much', :locals =>{:f => f}) %> ")
$("#depot_typies_judge").click -> $('#subform').html("<%= escape_javascript render(:partial => 'form_judge', :locals => {:f => f}) %>")
原本是在表单中根据 radio 的不同调用不同的 partila