Ruby RoR:设计500个错误

Ruby RoR:设计500个错误,ruby,ruby-on-rails-3,devise,Ruby,Ruby On Rails 3,Devise,当我进入/users/sign_in(或任何其他设计页面)时,我得到一个500错误 日志上说的就是这些: Started GET "/users/sign_in" for 67.161.236.149 at Mon Jun 13 02:51:47 +0000 2011 Processing by Devise::SessionsController#new as HTML Completed 500 Internal Server Error in 10ms ActiveRecord::S

当我进入/users/sign_in(或任何其他设计页面)时,我得到一个500错误

日志上说的就是这些:

Started GET "/users/sign_in" for 67.161.236.149 at Mon Jun 13 02:51:47 +0000 2011
  Processing by Devise::SessionsController#new as HTML
Completed 500 Internal Server Error in 10ms

ActiveRecord::StatementInvalid (Could not find table 'users'):




Started GET "/users/sign_out" for 67.161.236.149 at Mon Jun 13 10:40:25 +0000 2011
  Processing by Devise::SessionsController#destroy as HTML
Completed 500 Internal Server Error in 135ms

NameError (undefined local variable or method `root_path' for #<Devise::SessionsController:0x605f360>):
2011年6月13日星期一02:51:47+0000,67.161.236.149开始获取“/用户/登录” Desive::SessionController处理#新为HTML 在10毫秒内完成500个内部服务器错误 ActiveRecord::语句无效(找不到表“用户”): 2011年6月13日星期一10:40:25+0000开始获取67.161.236.149的“/用户/注销” Desive::SessionController#销毁为HTML进行处理 在135ms内完成500个内部服务器错误 NameError(未定义的局部变量或#的“root_path”方法): 出了什么问题?

这看起来很可疑:

ActiveRecord::StatementInvalid (Could not find table 'users'):
自从创建用户模型以来,您是否运行过
db:migrate

而且


这会将任何请求定向到www.yourdomain.com/到页面控制器的主操作。

我已经运行了db:migrate,是的。有一个名为“用户”的数据库…这就是为什么我感到困惑的原因。我解决了这个问题!我的httpd.conf文件将虚拟主机设置为只侦听端口80。我去掉了虚拟主机上的:80,瞧!
NameError (undefined local variable or method `root_path' for #<Devise::SessionsController:0x605f360>)
root :to => "pages#home"