Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before: > flash.inspect => #<ActionDispatch::Flash::FlashHash:0x0000000116592308 @discard=#<Set: {"allow_other_host", "flash"}>, @Flashes={"allow_other_host"=>false, "flash"=>{"error"=>"Sorry, that was too quick! Please resubmit."}}, @now=nil> `flash[:error]` is empty and the error message only accessible as `flash.to_h.dig("flash", "error")`. Whereas when I manually set `flash[:error]` in Rails, the flash looks like this: #<ActionDispatch::Flash::FlashHash:0x0000000113511418 @discard=#<Set: {"error"}>, @Flashes={"error"=>"AAAA"}, @now=nil>
- Loading branch information