What is the difference between sessions and flash?

Answer Posted / anbuselvan.v

Session is only for store the small amount of user
data,which data not stored permanently that's when we logged
out from our application.. which session value will removed.
But Flash is used to display the some messages like error
message and useful information messsages in view pages...

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain testing in rails.

516


Is ruby on rails popular?

503


Is ruby on rails dying?

474


What I have to do to view my project always on browser?

489


How can you run rails without creating databases?

397






What are gemsets in rails?

463


Please explain what are the positive aspects of rails?

452


What is the process for creating a controller for the subject? What is its role?

443


List out the few features of Ruby?

500


What is cross-site request forgery (csrf)? How is rails protected against it?

539


Name some rails ide or editor.

477


What is the difference between Render vs. Redirect_to in ruby on rails ?

498


Explain the role of sub directory app/controllers and app/helpers.

489


what is a rails migration? Write up a short example of a simple rails migration with a table called customers, a string column called name, and a text column called description?

478


what is the difference between redirect and render in Ruby on Rails?

545