EPISODE · Apr 2, 2007 · 5 MIN
#13 Dangers of Model in Session
from RailsCasts (Mobile) · host Ryan Bates
Be careful when storing a model in a session. It will behave differently than you expect and can easily get out of sync with the database. Instead of storing the model directly in the session, store the id to the model and use that to fetch it from the database.
Embed this episode
NOW PLAYING
#13 Dangers of Model in Session
0:00
5:17
1×
No transcript for this episode yet
Similar Episodes
No similar episodes found.
Similar Podcasts
No similar podcasts found.
Frequently Asked Questions
How long is this episode of RailsCasts (Mobile)?
This episode is 5 minutes long.
When was this RailsCasts (Mobile) episode published?
This episode was published on April 2, 2007.
Can I download this RailsCasts (Mobile) episode?
Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!