flash[:notice]

A flash is essensial a session variable that is around in the request
after it was set. On the request after that again, it's gone. Not sure
about your problem, though.

You could use flash.now[:notice], that way it will only show once.

Kind regards,

Nick