$('#modalContainer').html('#{escape_javascript(render('modal_form'))}'); $('#modalForm').modal();