我是一个从 PHP 和 Symfony 领域迁移到 Ruby 和 Rails 世界的新手。我目前正在尝试为 authlogic 设置 Facebook Connect 插件和 Twitter oAuth。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