在rails中获取简单索引路由的错误:
以下是我的路线:
Prefix Verb URI Pattern Controller#Action
scan_index GET /scan/index(.:format) scan#index
root GET / scan#index
scan GET /scan(.:format) scan#index
然而,输入以下网址:
http://notrealurl.com/scan
在error_log中生成以下内容:
I, [2015-08-04T15:38:42.902191 #24943] INFO -- : Started GET "/scan" at 2015-08-04 15:38:42 +0000
F, [2015-08-04T15:38:42.902936 #24943] FATAL -- :
ActionController::RoutingError (No route matches [GET] "/scan"):