Generated Sessions controller and integration test script
Listing 8.2 Adding a resource to get the standard RESTful actions for sessions
Listing 8.3 The initial Sessions controller
Listing 8.4 The initial signin view
Listing 8.5 The tests for signin failure
Listing 8.6 Test for signin success
Listing 8.7 Code for the signin form
Listing 8.7 Code for the signin form (fix typo)
Listing 8.9 A preliminary version of the Sessions create action
Listing 8.10 An (unsuccessful) attempt at handling failed signin
Listing 8.11 Correct tests for signin failure
Listing 8.12 Correct code for failed signin
Listing 8.11 Correct tests for signin failure (fixed typo)
Listing 8.12 Correct code for failed signin
Listing 8.13 The completed Sessions controller create action (not yet working)
Listing 8.14 Including the Sessions helper module into the Application controller
Listing 8.15 A first test for the remember token
Listing 8.16 A migration to add a remember_token to the users table
Listing 8.17 A test for a valid (nonblank) remember token
Listing 8.19 The complete (but not yet working) sign_in function