Well, I'm sure there is something simple that I am missing here, but I cannot find the answer.
I have a modal one that I update with just a normal HTTP request, and now add some unobtrusive AJAX with jQuery to handle the same request.
After the controllerβs action, I have user messages delivered to the flash [] hash functions (IE flash [: errors], flash [: message]). This is then displayed when redirecting to the page.
My question is: how do I access this hash scheme in my answer to the .js file? I want to do something like:
$("#message").append(ADD FLASH MESSAGE HERE || render a message partial)
source
share