RailsApps / learn-rails

An example Rails 5.1 app to accompany the "Learn Ruby on Rails" book.
https://learn-rails.com/install-rails-mac/index.html
392 stars 266 forks source link

Console log inconsistencies #100

Open simoncal-saas opened 7 years ago

simoncal-saas commented 7 years ago

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:

DanielKehoe commented 7 years ago

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