Rails Routes - How to make them case insensitive?

后端 未结 6 509
春和景丽
春和景丽 2021-01-17 18:10

Routes in Ruby on Rails are case sensitive. It seems someone brought this up before, and it has been labeled will not fix.

http://rails.lighthouseapp.com/projects/89

6条回答
  •  南方客
    南方客 (楼主)
    2021-01-17 18:14

    Routes in Rails are case sensitive because URLs are case sensitive. From the W3C:

    URLs in general are case-sensitive (with the exception of machine names). There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive.

提交回复
热议问题