Rah*_*hul 0 ruby-on-rails
当我转到http:// localhost:3000时,我希望我的控件转到rails中的登录控制器,而不是路由到index.html .我怎样才能做到这一点?
NAR*_*KOZ 11
您需要设置根路径config/routes.rb,例如:
config/routes.rb
root 'login#index'
归档时间:
15 年 前
查看次数:
8074 次
最近记录:
8 年,4 月 前