plataformatec/devise — Issue #1466: OpenID for Google example from Wiki not working
Author: Rhywden
Created: 2011-11-26 16:08:57+00:00
State: open

Okay, since the Google Apps example was not working, I decided to go with the plain Google example for the time being.

Thus I had in routes.rb a simple

devise_for :users

devise.rb included the two lines:

require 'openid/store/filesystem'
config.omniauth :open_id, :store => OpenID::Store::Filesystem.new('/tmp'), :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id', :require => 'omniauth-openid'

and finally in my application.html.erb:

<% if user_signed_in? %>
<%= link_to('Logout', destroy_user_session_path, :method => :delete) %>
<% else %>
<%= link_to 'Login', user_omniauth_authorize_path(:google) %>
<% end %>

Only problem: I'm ending up with this error message:

AbstractController::ActionNotFound (The action 'google' could not be found for Devise::OmniauthCallbacksController):