viatropos/authlogic-connect — Issue #59: undefined method `oauth_login_button' in rails 3.1.3
Author: picharras
Created: 2011-12-04 21:41:15+00:00
State: open

Hello.

I'm getting the error `oauth_login_button ' in the controller" user_sessions " when trying to login (new), use ruby 3.1.3.
my code is:

<%= form_for (@user_session) do |f| %>
<% if @user_session.errors.any? %>

<%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:

<%= oauth_login_hidden_input %>

<% @user.errors.full_messages.each do |msg| %>

<%= msg %>

<% end %>

<% end %>
<%= hidden_field :authentication_type, 'user' %>

<%= f.label :username %>

<%= f.text_field :username %>

<%= f.label :password %>

<%= f.password_field :password %>

<%= f.submit "Login"%>

<% end %>
<%= oauth_login_button(:value => "Login with Twitter", :class => 'twitter') %>