Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 同一目的地的多个URL_Ruby On Rails_Url_Naming - Fatal编程技术网

Ruby on rails 同一目的地的多个URL

Ruby on rails 同一目的地的多个URL,ruby-on-rails,url,naming,Ruby On Rails,Url,Naming,有多个URL指向同一个目的地是一种不好的做法吗 请放心,这些URL是唯一的。例如: page.com/model/hello-there==page.com/model/hellothere==page.com/model/h-e-lloth-ere 所有的字母都减少为字母(/hellother) 这有什么缺点吗?谢谢 你指的是 我强烈建议查看该链接,以及一些宝石,包括 这绝对没有问题,只要你正确地组织路线。例如,作为一个用户,我欢迎/users/mark zuckerberg,而不是users

有多个URL指向同一个目的地是一种不好的做法吗

请放心,这些URL是唯一的。例如:

page.com/model/hello-there==page.com/model/hellothere==page.com/model/h-e-lloth-ere

所有的字母都减少为字母(/hellother)


这有什么缺点吗?谢谢

你指的是

我强烈建议查看该链接,以及一些宝石,包括

这绝对没有问题,只要你正确地组织路线。例如,作为一个用户,我欢迎
/users/mark zuckerberg
,而不是
users/109234230234/mark zuckerberg/z22323
(这都是关于一天结束时的用户体验)