ryanb / railscasts

railscasts.com in open source (outdated).

Home Page:http://railscasts.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about user token in the Railscasts code

benoitr opened this issue · comments

Hi Ryan,

Sorry if I post this in the wrong section. (This is not an issue)
I have just a question about the use of user token in your railscasts code.

If I am right, the token is set for faster login in development. However I am wondering if there is another use of user token in your project, as I can't see it.

Thanks a lot for your lightning!

The user token is used in production too. When a user logs in it stores the user's token in their cookie and then uses this to fetch the current_user.