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

@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.

Oops, I meant to say add , via: :all to the root route. Fixed.