I am brand new to rails. During training, I came across using a flash variable to save data for the next postback when redirecting.
My questions
when to use it.
how rails support it for me, whether it makes a return trip to the user and back, or supports the server side.
Any answers would be appreciated.
flash is used to store data (usually text) that is required in the next request, and they are automatically deleted after the next request.
flash - , , ( ).
Rails Flash- , .
Your account settings have been updated!
Your password or email is incorrect
<%= flash[:whatever] %>
Source: https://habr.com/ru/post/1775178/More articles:In django, how can I get the value from db to a custom field template? - pythonC # MSSQL alter table, then change the values - c #Creating a twitter monetizer - c #Need to develop an Android stock tracking app using the Google Finance API? - androidКаков правильный способ обработки запросов сайта с помощью обработчиков файлов cookie в Python3? - pythonAlgorithm for automatic assembly of nodes and connections - algorithmBest way to disable all submit buttons after postback - javascriptData structure to represent piecewise continuous range? - data-structuresHow to read boot events in Windows 7? - c ++Expression in C ++ - c ++All Articles