undefined method `oauth_login_button' in rails 3.1.3 #59

Open
picharras opened this Issue Dec 4, 2011 · 0 comments

1 participant

@picharras

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') %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment