0
我有第5.3.2節,你在哪裏改變路線從..static_pages/help
到../help
等的幫助,聯繫方式和有關網頁的問題。錯誤不斷變化的路線,以下回報率教程
這三個工作正常。但是當我輸入主頁的超鏈接時,它不會出現。有沒有錯誤當我運行bundle exec
。
即使當我單擊頁腳和頁眉上的鏈接時,它們也可以正常工作,但家庭總是重定向到默認的Rails教程頁面。
我刪除了public index.html
通過Git.
代碼的config/routes.rb中
SampleApp::Application.routes.draw do
root to: 'static_pages#home'
match '/help', to: 'static_pages#help'
match '/about', to: 'static_pages#about'
match '/contact', to: 'static_pages#contact'
.
.
.
end
你是怎麼完全刪除'public/index.html.erb'的?如果你刪除了公共/ index.html.erb –
請再次檢查.. – sunny1304
仔細檢查該文件被刪除您的git倉庫,你的路由外觀精緻 – ahmet