是否有質量的方式來更新“link_to_remote”中的文本並保持鏈接正常運行?基本上我有兩個鏈接:
{:action => "update_chart_matrix", :chartable_type => "building",:chartable_id => building.id, :title => building.name},
:update => 'chart-matrix',
}
%>
...和...
{:action => "add_chart_for_chartable", :chartable_type => "building",:chartable_id => building.id},
:update => 'other_link', #really not sure about this part as I only want to update the Chart Count in the other link
}
%>
簡單地替換鏈接中的HTML會很容易,但我不想“破壞”它的功能。有任何想法嗎?
謝謝。