Flash.now, why not just use an instance variable instead?

Hi, me again with another silly question. If flash.now only lasts for
the request on which it was set, what makes it different than a plain
old instance variable?


def action
@message = “message”
<%= @message %>

produce the same results as,

def action
flash.now[“message”] = “message”
<%= flash[“message”] %>


the assumption is that the flash is in your layout and flash.now will
behave the same

Ah, of course.