Ruby On Rails Lesson
Signin upon Signup
In principle, although we are now done with authentication, newly registered users might be confused, as they are not signed in by default. Implementing this is the last bit
of polish before letting users sign out. We’ll start by adding a line to the authentication tests (Listing 8.26). This includes the ‘‘after saving the user’’ describe block from Listing 7.32 from the Chapter 7 exercises (Section 7.6), which you should add to the test now if you didn’t already do the corresponding exercise.