Authlogic Facebook Connect / Twitter oAuth助手问题

时间:2009-10-28 02:23:49

标签: ruby-on-rails twitter facebook authlogic

我是Ruby&的全新手。 Rails从PHP& Symfony的。我目前正在尝试设置Facebook Connect插件& Twitter oAuth for authlogic。 Authlogic没有问题,但是当我试图调用他们的按钮时,其他两个都失败了 - 有人能告诉我哪里出错了吗?我把堆栈跟踪放在下面 - 谢谢!


NameError in User_sessions#new

Showing app/views/user_sessions/new.html.haml where line #13 raised:

undefined local variable or method `authlogic_facebook_login_button' for #<ActionView::Base:0x1034fe9e0>

Extracted source (around line #13):

= f.text_field :password
%br
= f.submit "Login"
= authlogic_facebook_login_button



RAILS_ROOT: /Users/nick/Sites/matchmefor-2
Application Trace | Framework Trace | Full Trace

/Users/nick/Sites/matchmefor-2/app/views/user_sessions/new.html.haml:13:in `_run_haml_app47views47user_sessions47new46html46haml'
/Library/Ruby/Gems/1.8/gems/haml-2.2.9/lib/haml/helpers/action_view_mods.rb:164:in `call'
/Library/Ruby/Gems/1.8/gems/haml-2.2.9/lib/haml/helpers/action_view_mods.rb:164:in `form_for'
/Library/Ruby/Gems/1.8/gems/haml-2.2.9/lib/haml/helpers.rb:543:in `call'
/Library/Ruby/Gems/1.8/gems/haml-2.2.9/lib/haml/helpers.rb:543:in `haml_bind_proc'
/Library/Ruby/Gems/1.8/gems/haml-2.2.9/lib/haml/helpers/action_view_mods.rb:170:in `form_for'
/Users/nick/Sites/matchmefor-2/app/views/user_sessions/new.html.haml:4:in `_run_haml_app47views47user_sessions47new46html46haml'
/Library/Ruby/Gems/1.8/gems/haml-2.2.9/lib/haml/helpers/action_view_mods.rb:13:in `render'
/Library/Ruby/Gems/1.8/gems/haml-2.2.9/lib/haml/helpers/action_view_mods.rb:13:in `render'
/Library/Ruby/Gems/1.8/gems/haml-2.2.9/lib/sass/plugin/rails.rb:19:in `process

0 个答案:

没有答案