Instantly share code, notes, and snippets.
Rails flash messages with AJAX requests
original: http://stackoverflow.com/a/10167659/656428