In Book 2 Version 4.1.0, 3 July 2017, below console log has several inconsistencies compared with my own result, noted in bold:
Console log in section "Test the Application" after "Process_form Method":
Started POST "/contact" for ::1 at 2015-12-24 13:46:34 +0700
Processing by ContactsController#process_form as HTML as JS
Parameters: {"utf8"=>"✓", "authenticity_token"=>"...",
"contact"=>{"name"=>"Daniel Kehoe", "email"=>"daniel@danielkehoe.com",
"content"=>"Looking forward to your birthday!"}, "commit"=>"Submit"} content s/b "hi" as below?
DEBUG: params are <ActionController::Parameters {"utf8"=>"✓",
"authenticity_token"=>"...", "contact"=>{"name"=>"Daniel Kehoe",
"email"=>"kehoe@fortuity.com", "content"=>"hi"}, "commit"=>"Submit", "content"=>"hi"
"controller"=>"contacts", "action"=>"process_form"} permitted: false>
Redirected to http://localhost:3000/
Completed 302 Found in 15ms (ActiveRecord: 0.0ms) Completed 200 OK in xxx ms
Explanations:
as HTML - not XML or some other markup as JS
Completed 302 Found - HTTP response status code 302 indicating a redirection Completed 200 OK
in 0ms - time required to process the request in xxxms
In Book 2 Version 4.1.0, 3 July 2017, below console log has several inconsistencies compared with my own result, noted in bold:
Console log in section "Test the Application" after "Process_form Method":
Started POST "/contact" for ::1 at 2015-12-24 13:46:34 +0700 Processing by ContactsController#process_form as HTML as JS Parameters: {"utf8"=>"✓", "authenticity_token"=>"...", "contact"=>{"name"=>"Daniel Kehoe", "email"=>"daniel@danielkehoe.com", "content"=>"Looking forward to your birthday!"}, "commit"=>"Submit"} content s/b "hi" as below? DEBUG: params are <ActionController::Parameters {"utf8"=>"✓", "authenticity_token"=>"...", "contact"=>{"name"=>"Daniel Kehoe", "email"=>"kehoe@fortuity.com", "content"=>"hi"}, "commit"=>"Submit", "content"=>"hi" "controller"=>"contacts", "action"=>"process_form"} permitted: false>
Redirected to http://localhost:3000/ Completed 302 Found in 15ms (ActiveRecord: 0.0ms) Completed 200 OK in xxx ms
Explanations: