2010-03-13 4 views
0

J'utilise Ruby on Rails 2.3.5 et Ruby 1.9 et implemente Authlogic comme moteur d'authentification. Authlogic fonctionne bien. Mais maintenant, je suis en train de mettre en œuvre réinitialisation du mot de passe en utilisant le tutoriel suivant:
http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/Je reçois une exception en essayant d'implémenter le mot de passe de réinitialisation avec Authlogic

Mais je reçois l'exception suivante quand je tape 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' 

Honnêtement je Je ne sais pas par où débuter le débogage pour cela. Est-ce parce que j'utilise Ruby 1.9? certaines personnes semblent avoir des problèmes avec Authlogic et Ruby 1.9:
http://isitruby19.com/authlogic

S'il vous plaît me conseiller comment s'y prendre pour résoudre/débogage ce problèmes?

Merci,

Tam

Répondre

1

Vous pouvez commencer par l'exécution d'un test pour PasswordResetsController # nouvelle action, et poster ici la sortie.

Questions connexes