0
當前代碼:Ruby on Rails的添加格上的錯誤消息加入了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>
由於它工作正常! – fxuser 2012-07-25 16:20:51