Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用的是 rails 3 版本,在 ajax 调用之后,我无法显示 flash 消息。它仅在用户手动重新加载页面后显示。
有什么建议吗?
使用flash.now:
flash.now[:notice] = 'available in same request'