Session controller book error
Closed this issue · 2 comments
Michael,
In the basic login chapter of the PDF book (published 01-31-21), the create action incorrectly logs in the user with log_in @user
whoever this should be log_in user
Thanks for the great resource
Thanks for reaching out and for the kind words. Could you indicate the specific code listing you believe is in error? The only appearance of log_in @user
in the current version of Chapter 8 is in Listing 8.32. In that context, I believe the use of @user
is correct. Note in particular that Listing 8.32 is for the Users controller, not the Sessions controller. (The latter does use log_in user
instead.)
Sorry... you are correct, I missed the switch in the listings from sessions to user controllers.
I am rebuilding this app as a review and incorporating Bootstrap 5 and a few other features along the way just for a review, especially the testing part.