What's the correct way to set a flash message for the current view but not show it for the next request. In other words usually you set the flash message and redirect and the flash message gets shown on the redirect. I don't want to redirect and so I need to make sure the flash message doesn't get shown twice.
flash.now[:notice] = 'message'
2.1m questions
2.1m answers
60 comments
57.0k users