[Ruby] Preserving State

Geoffrey Grosenbach boss at topfunky.com
Tue Dec 5 12:07:14 PST 2006


On Dec 5, 2006, at 11:37 AM, Neil Moomey wrote:
> Does Rails have some cool feature for preserving state after the  
> first post?

Also, if you have a database model for the info you can store that  
initalized (but unsaved) model object in the session and check for it  
in subsequent posts. Then the form fields will fill themselves out  
automatically from that data.

However, you don't want to store too much in the session, so use this  
sparingly.

Geoffrey Grosenbach
Screencast | http://peepcode.com





More information about the Ruby mailing list