ajax 调用的当前代码:
@return = { :error => true, :response => @invitation.errors.full_messages.join("<br />") }
错误现在显示为
Email can't be blank
Email is invalid
如何在每行中添加div
错误消息和p
标签?
所以它会变成
<div>
<p>Email can't be blank</p>
<p>Email is invalid</p>
</div>