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

  1. when should used.

  2. how rails maintain me, make round trip user , or maintained server side.

  3. 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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -