Agile Web Development with Rails 7: error when switching locale 'No route matches [POST] "/"' (page 244)

@rubys
After adding the locale switcher, attempting to switch gives the error:

Routing Error
No route matches [POST] "/"

Adding method="get" to the form_tag fixes it, so that may have been what was intended.