2009-10-03 18 views
3

Authlogic 플러그인을 사용하는 Heroku에서 앱을 준비하려고합니다. 로그에이 오류가 표시됩니다. 처음 엔 보석 버전에 문제가 있다고 생각했지만 여러 번 시도했습니다 : 2.1.1, 2.1.2, 2.1.3.Authlogic이 Heroku에서 오류를 throw합니다.

그러나 authlogic example을 배포하려고 시도했지만 동일한 오류가 발생합니다.

감사합니다.

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) 

답변

3

준비 서버에서 모든 마이그레이션을 실행 했습니까? 모델 클래스에 특성이 누락 된 것처럼 보입니다.이 특성은 종종 실행 취소 마이그레이션의 증상입니다.

+0

그럴 가능성이 가장 높습니다. –

+0

네 말이 맞아, 나는 공식적으로 바보 야. 디버깅에 얼마나 많은 시간을 썼는지 말할 수 없습니다. –