$ rails generate controller StaticPages home help --no-test-framework
Box 3.2 Undoing things:
$ rails destroy controller/model/etc
$ rake db:rollback
Box 3.3 HTTP Operations (Verbs)
- GET - reading data
- POST - request sent to submit form
- PATCH - updating things
- DELETE - deleting things
### 3.2.1 Test-driven development
$ rails generate integration_test static_pages
Listing 3.9 Code to test the contents of the Home Page
Listing 3.10 Add Capybara DSL to RSpec helper file
Remove default test for static pages. Will learn how to right tests later
Listing 3.11 Update view static_pages/home to pass test
Listing 3.12 Add code to test contents of Help page
3.13 Display Help text on static_pages/help
3.14 Add code to test contents of About page
3.15 Add "about" route
3.16 StaticPages: add "about" action
3.17 StaticPages: add "About" view
### 3.3.1 Testing a title change
Remove auto-generated app layout
3.18 Test /static_pages/home has the right title
3.19 Test /static_pages/help has the right title
3.19 Test /static_pages/about has the right title