Authlogic在Heroku上引发错误 [英] Authlogic throws errors on Heroku

查看:74
本文介绍了Authlogic在Heroku上引发错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Heroku上使用Authlogic插件的应用程序上演.日志向我显示此错误.我最初认为gem版本存在问题,但尝试了以下几种:2.1.1、2.1.2、2.1.3.

I am trying to stage an app on Heroku that uses the Authlogic plugin. The Logs show me this error. I first thought there is a problem with the gem version, but I tried several: 2.1.1, 2.1.2, 2.1.3.

但是我尝试部署 authlogic示例,但是它抛出了相同的错误.

But I tried deploying the authlogic example but it throws the same error.

谢谢您的时间.

Processing UserSessionsController#new (for 188.27.118.88 at 2009-10-03 01:34:08) [GET]
Parameters: {"action"=>"new", "controller"=>"user_sessions"}
Rendering template within layouts/account
Rendering user_sessions/new

ActionView::TemplateError (undefined method `login' for #<UserSession: no credentials provided>) on line #12 of app/views/user_sessions/new.html.haml:
9:         = f.text_field :login
10:       %li
11:         = f.label :password, "Password:"
12:         = f.password_field :password
13:       %li
14:         = f.label :password, "Remember me:"
15:         = f.check_box :remember_me

app/views/user_sessions/new.html.haml:12:in `_run_haml_app47views47user_sessions47new46html46haml'
haml (2.2.3) lib/haml/helpers/action_view_mods.rb:163:in `call'
haml (2.2.3) lib/haml/helpers/action_view_mods.rb:163:in `form_for'
haml (2.2.3) lib/haml/helpers.rb:542:in `call'
haml (2.2.3) lib/haml/helpers.rb:542:in `haml_bind_proc'
haml (2.2.3) lib/haml/helpers/action_view_mods.rb:169:in `form_for'
app/views/user_sessions/new.html.haml:4:in `_run_haml_app47views47user_sessions47new46html46haml'
haml (2.2.3) lib/haml/helpers/action_view_mods.rb:13:in `render'
haml (2.2.3) lib/haml/helpers/action_view_mods.rb:13:in `render'
haml (2.2.3) rails/./lib/sass/plugin/rails.rb:19:in `process'
/home/heroku_rack/lib/static_assets.rb:9:in `call'
/home/heroku_rack/lib/last_access.rb:25:in `call'
/home/heroku_rack/lib/date_header.rb:14:in `call'
thin (1.0.1) lib/thin/connection.rb:80:in `pre_process'
thin (1.0.1) lib/thin/connection.rb:78:in `catch'
thin (1.0.1) lib/thin/connection.rb:78:in `pre_process'
thin (1.0.1) lib/thin/connection.rb:57:in `process'
thin (1.0.1) lib/thin/connection.rb:42:in `receive_data'
eventmachine (0.12.6) lib/eventmachine.rb:240:in `run_machine'
eventmachine (0.12.6) lib/eventmachine.rb:240:in `run'
thin (1.0.1) lib/thin/backends/base.rb:57:in `start'
thin (1.0.1) lib/thin/server.rb:150:in `start'
thin (1.0.1) lib/thin/controllers/controller.rb:80:in `start'
thin (1.0.1) lib/thin/runner.rb:173:in `send'
thin (1.0.1) lib/thin/runner.rb:173:in `run_command'
thin (1.0.1) lib/thin/runner.rb:139:in `run!'
thin (1.0.1) bin/thin:6
/usr/local/bin/thin:20:in `load'
/usr/local/bin/thin:20

Rendering /disk1/home/slugs/54799_a9ae7e8_77bb/mnt/public/500.html (500 Internal Server Error)

推荐答案

是否已在登台服务器上运行所有迁移?在我看来,模型类缺少属性,这通常是未运行的迁移的征兆.

Have you run all migrations on the staging server? It looks to me like a model class is missing an attribute, which is often a symptom of an un-run migration.

这篇关于Authlogic在Heroku上引发错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆