Allow both a path and an option on root in config/routes
Merge pull request #9441 from rubys/master

This is a small thing, motivated by https://github.com/rails/rails/issues/9419