Ruby on rails - flash variable -
i'm new rails. while learning came across use of flash variable maintaining data next postback when redirecting.
my questions are
when should used.
how rails maintain me, make round trip user , or maintained server side.
- if maintained server side how rails know when discard variable , prevent memory getting clogged up.
any replies appreciated
flash used store data (generally text) required in next request , deleted automatically after next request.
flash nothing object stores in session , maintain rails (server side).
rails initialize flash object , marked removal in next request gets deleted in next request.
Comments
Post a Comment