0

I am using rails 3 version, after an ajax call, I am not able to display flash message.It displays only after when user manually reloads a page.

Any advice?

Pez
  • 1,091
  • 2
  • 14
  • 34
  • [check the link](http://stackoverflow.com/questions/366311/how-do-you-handle-rails-flash-with-ajax-requests) – Nithin Oct 31 '13 at 06:18

1 Answers1

0

Use flash.now:

flash.now[:notice] = 'available in same request'

Damien Roche
  • 13,189
  • 18
  • 68
  • 96