-# please polish the following line if you know how, same in view destroy var errorDiv = $('
x
'); errorDiv.append(document.createTextNode('#{j(fail_msg)}')); $('div.container-fluid').prepend(errorDiv);