ryanb / railscasts

railscasts.com in open source (outdated).
http://railscasts.com
MIT License
760 stars 175 forks source link

Question about user token in the Railscasts code #21

Closed benoitr closed 13 years ago

benoitr commented 13 years ago

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!

ryanb commented 13 years ago

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.