$('#sheet_show').remove(); $('body').append("<%= escape_javascript(render(:template => "sheets/edit.html.haml")); %>");