更新时间:2023-02-17 10:47:59
您需要在routes.rb
文件中设置根路由.
You need to setup a root route in routes.rb
file.
root :to => 'index#index'
第一个索引是控制器名称(IndexController),第二个索引是IndexController中的动作名称.
Where the first index is the controller name (IndexController) and the second index is the action name in the IndexController.