Displaying 1 result from an estimated 1 matches for "hash_map_for_xml".
2011 Nov 03
0
multiple render text in jquery rails
...espond_to do |format|
format.html {
render :text=> "<div id=''outputDiv''><span
class=''inputError''>Please enter message upto 140
characters</span></div>"
}
format.xml {
render :xml=>hash_map_for_xml.to_xml(:root => "mb")
}
end
===========================
Normal post.js.erb is:
$("#div3").html("<%= escape_javascript render ''/messages/timeline'' %>");
which works if all is ok but how do i render messages like these when
user...