表单: RailsNotes
用户: dreamable
创建日期: 2023-05-10 02:40:52 UTC
更新日期: 2023-05-10 02:40:52 UTC
引用:(Table ID 3, Record ID 56)

标题 :
Rails Flash.now not working
笔记 :

When redirecting use

flash[:notice] = "This message value is available in next request-response cycle"

When rendering use

flash.now[:notice] = "Message is available in same request-response cycle"

Info from here

标签: