A general question about railstutorial.org sessions helper methods

Typically you’re calling current_user, for example to check whether there is a logged in user, so that you know what user is creating comments, posts etc.

As I read it, self.current_user= is just a bit of an optimisation - if the user has just signed in then you know what the current_user is so you can prime the cache (@current_user) with the user value you’ve been passed

Fred

Hmm I’m still confused.

But thx for helping.