Agile Web Development with Rails 6 - Inconsistent reference to locale switcher js file Iteration K4 (PDF p281)

Page 282 of the PDF provides an inconsistent reference to the locale switcher in the text of the book text and the code snippet

book text: We’ll add this code into a new file called app/assets/javascripts/locale_switcher.js :

code snippet: rails6/depot_u/app/javascript/packs/locale_switcher.js

The reference to app/javascript/packs in the code snippet is the correct one. (The other text talks about adding it as a pack tag, so it’s just a typo.

1 Like