master
$('#chartdetails').remove(); $("#chartdetailscontainer").append("<%= j render('home/chartdetails.html.erb') %>");