2010-03-13 6 views
0

저는 Ruby on Rails 2.3.5 및 Ruby 1.9를 사용 중이며 인증 엔진으로 Authlogic을 구현했습니다. Authlogic은 정상적으로 작동합니다. 하지만 지금은 다음 자습서를 사용하여 암호 재설정을 구현하기 위해 노력 해왔다 :
http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/Authlogic으로 비밀번호 재설정을 구현하려고 할 때 예외가 발생합니다.

을하지만 솔직히 나는 'mysite.com/password_resets/new

Processing PasswordResetsController#new (for 127.0.0.1 at 2010-03-13 01:09:45) [GET] 
Completed in 9ms (DB: 0) | 200 [http://localhost/password_resets/new] 
[2010-03-13 01:09:45] ERROR TypeError: can't convert Array into String 
    /Users/tammam56/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-2.3.5/lib/active_support/core_ext/string/output_safety.rb:34:in `concat' 
    /Users/tammam56/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-2.3.5/lib/active_support/core_ext/string/output_safety.rb:34:in `concat_with_safety' 
    /Users/tammam56/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.0.1/lib/rack/handler/webrick.rb:63:in `block in service' 
    /Users/tammam56/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-2.3.5/lib/action_controller/response.rb:158:in `each' 
    /Users/tammam56/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-2.3.5/lib/action_controller/response.rb:158:in `each' 
    /Users/tammam56/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:16:in `send' 
    /Users/tammam56/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:16:in `method_missing' 
    /Users/tammam56/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:22:in `method_missing' 
    /Users/tammam56/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.0.1/lib/rack/handler/webrick.rb:62:in `service' 
    /Users/tammam56/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service' 
    /Users/tammam56/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run' 
    /Users/tammam56/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread' 

를 입력 할 때 나는 다음과 같은 예외를 받고 있어요 이것에 대한 디버깅을 시작할 위치를 모르겠습니다. 내가 Ruby 1.9를 사용하고 있기 때문입니까? 어떤 사람들은 보이지 Authlogic와 루비 1.9에 문제가있다 :
http://isitruby19.com/authlogic

방법이 문제를/디버깅을 해결하는 가야 나에게 알려주십시오?

감사합니다,

답변

1

당신은 PasswordResetsController # 새로운 액션에 대한 테스트를 실행하여 시작하고 여기에 출력을 게시 할 수 있습니다.

관련 문제