learn-rails icon indicating copy to clipboard operation
learn-rails copied to clipboard

Console log inconsistencies

Open simoncal-saas opened this issue 8 years ago • 1 comments

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"=>"[email protected]", "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"=>"[email protected]", "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

simoncal-saas avatar Jul 19 '17 05:07 simoncal-saas

Thanks for the report. I'll look into this.

DanielKehoe avatar Jul 19 '17 05:07 DanielKehoe