Open dennisharrison opened 2 years ago
Downloaded sample code and it's not showing the same behavior. I guess I get to learn how to debug this :)
OK, so putting: https://github.com/learnenough/rails_tutorial_sample_app_7th_ed/blob/main/app/views/layouts/application.html.erb#L7-L8
into the _rails_default.html.erb and rendering it as suggested in 5.18 causes this error. Not using the partial to render the CSRF and doing like you have in the application.html.erb in this repository works fine. 🤷♂️
Cheers!
https://github.com/learnenough/rails_tutorial_sample_app_7th_ed/blob/main/app/views/layouts/_header.html.erb#L29
snip from the console output: