部署 heroku 后,放问页面提示 The page you were looking for doesn't exist.
使用 heroku logs 查看,提示这个错误:ActionController::RoutingError (No route matches [GET] "/")。
在开发环境中,路由是正常的,用 heroku run rake routes 查看,竟然没有任何路由信息,一下就茫然了。
请懂的能给解决哈,谢谢!
Blogdemo::Application.routes.drawdoget"index_page/home"# The priority is based upon order of creation: first created -> highest priority.# See how all your routes lay out with "rake routes".# You can have the root of your site routed with "root"root'index_page#home'end