We have a rails application and we have a API namespace defined as Api::V1, Api::V1_2, Api::V1_3 etc.
In routes.rb, we have set the following
namespace :
Came across same thing once. There was this bug on their github issue list
https://github.com/rails/rails/issues/5849
Then a pull request
https://github.com/rails/rails/pull/6105
But the discussion did not come to any solution. The common statement was like
Don't like undescores in Modules.
So you'll have to remove your underscores from the Module names