Suppose you want to show a message to a user who has logged in for the first time like, "Thanks for signing up".
Of course this is easy to achieve, but it seems a waste to check if it is their first visit (by any mechanism) every time thereafter.
Is it possible to do it in any way that doesn't involve checking every time?
I suppose this is more of a general programming question and not specific to rails.