Section 3.1.2 Add a StaticPages controller
Listing 3.9 Add a home page test
Listing 3.10 added the right code to the home page to pass the initial test
Listing 3.11 add code to test the contents of the Help page
Listing 3.12 Code to get a passing test for the Help page
Listing 3.13 Adding code to test the contents of the About page.
Listing 3.14 Adding the about route
Listing 3.15 The StaticPages controller with added about action
Listing 3.16 Code for the About page
Listing 3.16 Code for the About page
Listing 3.17 A title test
Listing 3.18 The StaticPages controller spec with title tests
Listing 3.19 The view for the Home page with full HTML structure
Listing 3.20 The view for the Help page with full HTML structure
Listing 3.21 The view for the About page with full HTML structure.
Listing 3.22 The view for the Home page with an Embedded Ruby title
Listing 3.23 The view for the Help pahge with an Embedded Ruby title
Listing 3.24 The view for the About page with an Embedded Ruby title
Listing 3.26 The Home page with HTML structure removed
Listing 3.26 The Help page with HTML structure removed