flash提示窗無法關閉

Published on:

錯誤:在步驟6: 测试 flash helper 的功能 都正常,可是提示窗按x後卻無法關掉
原因:app/assets/javascripts/application.js 輸入//= require bootstrap/alert
require 少了r
解法:先檢查views/common/_flashes.html.erb 都無誤
再檢查app/assets/javascripts/application.js

Comments

comments powered by Disqus