当前位置: 代码迷 >> Web前端 >> 二次页面跳转罗致的notice无法显示
  详细解决方案

二次页面跳转罗致的notice无法显示

热度:222   发布时间:2012-08-25 10:06:20.0
二次页面跳转导致的notice无法显示

在第二次页面跳转前加入flash.keep将信息保留住

Keeps either the entire current flash or a specific flash entry available for the next action:

   flash.keep            # keeps the entire flash
   flash.keep(:notice)   # keeps only the "notice" entry, the rest of the flash is discarded