Routing errors when upgrading from rails 3.1 to rails 3.2 due to underscores in module namespaces

后端 未结 1 1932
迷失自我
迷失自我 2021-01-24 16:19

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 :         


        
相关标签:
1条回答
  • 2021-01-24 17:04

    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

    0 讨论(0)
提交回复
热议问题