Closed knorrli closed 11 years ago
Flash messages don't render for ajax requests. You would have to provide the flash message via json in order to provide that flash message from the server. In my opinion it is not the responsibility of the REST endpoint to provide that messaging. If you provide proper status codes (200 for success, 422 for failed update) you should handle that on the client side.
I'm trying to display a flash message after the update action, which gets lost somewhere in the mercury-controller. I don't fully understand mercury, but I managed to get it to work by adding
flash.keep
to theedit
andresource
action. If there is a way to do this on my end or I'm doing something stupid please let me know.example controller code: