【发布时间】:2012-04-13 14:23:04
【问题描述】:
我有:
match 'welcome/index' => 'welcome#index'
只有一个欢迎操作/页面是索引。所以我可以有吗
match 'welcome/' => 'welcome#index'
(假设任何地方都不存在其他欢迎/目录)或其中之一:
match 'welcome' => 'welcome#index'
match '/welcome' => 'welcome#index'
match '/welcome/' => 'welcome#index'
匹配是否像某种正则表达式一样工作,我可以加入斜杠以确保查找目录的内容吗?
【问题讨论】:
-
我现在无法运行服务器 + 我也在寻找最佳实践
标签: ruby-on-rails ruby-on-rails-3 routes