#13 Dangers of Model in Session episode artwork

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.

Episode metadata supplied by the publisher feed · Published Apr 2, 2007

Embed this episode

NOW PLAYING

#13 Dangers of Model in Session

0:00 5:17

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

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!