You're not redirecting after you set the notice, you need to render.