nbudin/devise_openid_authenticatable — Issue #11: Documentation issue?
Author: mem
Created: 2011-10-18 02:15:38+00:00
State: open

Hi,

I'm trying to create an example application using Rails 3.1 and *only* openid_authenticatable, without database_authenticable. The user model looks like this:

class User < ActiveRecord::Base
devise :openid_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
attr_accessible :email, :remember_me
end

The migration looks like this:

class DeviseCreateUsers < ActiveRecord::Migration
def self.up
create_table(:users) do |t|
t.openid_authenticatable
t.recoverable
t.rememberable
t.trackable
t.string :email
t.timestamps
end

add_index :users, :email, :unique => true
end

def self.down
drop_table :users
end
end

If I go to http://0.0.0.0:3000/users/sign_in

It responds with:

NoMethodError in Devise/sessions#new

Showing .../openid/app/views/devise/sessions/new.html.erb where line #3 raised:

undefined method `session_path' for #<#:0x7fc03a0f7498>
Extracted source (around line #3):

1:

Sign in

2:
3: <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
4:

<%= f.label :email %>

5: <%= f.email_field :email %>

6:

If I add database_authenticatable, the problem goes away, but I'm trying to do without that. My understanding, looking at the example app for Rails 2.x is that this is supported. Right?

I have:

* devise (1.4.8)
* devise_openid_authenticatable (1.0.0)