【发布时间】:2010-10-26 01:09:57
【问题描述】:
我更新到 Rails 2.3.10,Rack 1.2.1,现在我的 flash 消息都没有出现。我发现在重定向期间通知是这样传递的
redirect_to(@user, :notice => "Sorry there was an error")
在我看来,闪存哈希是空的
<%= debug flash %>
!map:ActionController::Flash::FlashHash {}
但你可以在控制器中看到消息。给出了什么?
<%= debug controller.session %>
session{:home_zip=>"94108", :session_id=>"xxx", :flash=>{:notice=>"Sorry there was an error"}, :user_credentials=>"1baf9c9c0423ce0151ec32e24cc422f07309e4ba503eb4830635ecc115da217809997324374bb273b3fb792895c9741a8b8c9ea4267771a1bd149de5b9179ea0", :user_credentials_id=>22, :home_market_id=>11}
Edit Profile
【问题讨论】:
标签: ruby-on-rails ruby