2011-08-19 50 views

回答

11

刪除public/index.html並設置根路徑config/routes.rb

root :to => 'login#index'

+0

在最新的rails中,您不必刪除/public/index.html,因爲它不存在。 –

+0

'root to:redirect('/ login')'也可以 – narush

0

在最新版本,請在 的config/routes.rb中 和與家庭#指數與您的默認控制器 Rails.application.routes.draw做

根代替:對=>「回家#指數' end

相關問題