It is necessary to display errors in alert (), the only thing is that errors come in the form of array. Similarly, I displayed errors, but only when it came as a string. I can not understand yet, help
code example when working with string
-> $(".actions_sing_in").click (e) -> $("form#new_user").bind "ajax:success", (e, data, status, xhr) -> console.log data if data.success $('#sign_in').modal('hide') $('#sign_in_button').hide() $('#submit_comment').slideToggle(1000, "easeOutBack" ) else alert 'Status: ' + status + ' Message: ' + data.data.message