I have a view from which I make an ajax request to the controller and after the action is successfully completed I initialize the flash.now[:notice]. But after the control goes back to the view. I don't happen to see the flash message.
flash.now[:notice] = "Request Completed successfully" if @meetings.any?
Check you've got something like
in your application.html.erb file: if you don't you must add it, as this is where the notice will be displayed.
code in the controller:
and in the view with close button:
When redirecting use
When rendering use
Info from here
Do you flash.now BEFORE you call render? Otherwise your message won´t appear.