{"issue":{"created_at":"2011-10-18T02:15:38Z","state":"open","updated_at":"2011-11-29T21:17:11Z","user":{"gravatar_id":"e22bfc507fcbbd807a7b6519aa9070f7","id":189701,"url":"https://api.github.com/users/mem","avatar_url":"https://secure.gravatar.com/avatar/e22bfc507fcbbd807a7b6519aa9070f7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mem"},"comments":2,"body":"Hi,\r\n\r\nI'm trying to create an example application using Rails 3.1 and *only* openid_authenticatable, without database_authenticable.  The user model looks like this:\r\n\r\n    class User < ActiveRecord::Base\r\n      devise :openid_authenticatable, :registerable,\r\n             :recoverable, :rememberable, :trackable, :validatable\r\n      attr_accessible :email, :remember_me\r\n    end\r\n\r\nThe migration looks like this:\r\n\r\n    class DeviseCreateUsers < ActiveRecord::Migration\r\n      def self.up\r\n        create_table(:users) do |t|\r\n          t.openid_authenticatable\r\n          t.recoverable\r\n          t.rememberable\r\n          t.trackable\r\n          t.string :email\r\n          t.timestamps\r\n        end\r\n    \r\n        add_index :users, :email,                :unique => true\r\n      end\r\n    \r\n      def self.down\r\n        drop_table :users\r\n      end\r\n    end\r\n\r\nIf I go to http://0.0.0.0:3000/users/sign_in\r\n\r\nIt responds with:\r\n\r\n    NoMethodError in Devise/sessions#new\r\n    \r\n    Showing .../openid/app/views/devise/sessions/new.html.erb where line #3 raised:\r\n    \r\n    undefined method `session_path' for #<#<Class:0x7fc03a0fe298>:0x7fc03a0f7498>\r\n    Extracted source (around line #3):\r\n    \r\n    1: <h2>Sign in</h2>\r\n    2: \r\n    3: <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>\r\n    4:   <div><%= f.label :email %><br />\r\n    5:   <%= f.email_field :email %></div>\r\n    6: \r\n\r\nIf 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?\r\n\r\nI have:\r\n\r\n  * devise (1.4.8)\r\n  * devise_openid_authenticatable (1.0.0)\r\n","assignee":{"gravatar_id":"206b01d5765d45a6db9f3fbd1173fd18","id":7477,"url":"https://api.github.com/users/nbudin","avatar_url":"https://secure.gravatar.com/avatar/206b01d5765d45a6db9f3fbd1173fd18?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"nbudin"},"labels":[],"id":1935597,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":11,"title":"Documentation issue?","closed_at":null,"html_url":"https://github.com/nbudin/devise_openid_authenticatable/issues/11","url":"https://api.github.com/repos/nbudin/devise_openid_authenticatable/issues/11","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T21:17:11Z","updated_at":"2011-11-29T21:17:11Z","user":{"gravatar_id":"a74780e3bd891f32c0881a643f1097ae","id":149135,"url":"https://api.github.com/users/cure","avatar_url":"https://secure.gravatar.com/avatar/a74780e3bd891f32c0881a643f1097ae?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"cure"},"body":"I'm seeing the same thing with Devise 1.5.1 and devise_openid_authenticatable (1.0.0). Any updates on this?","id":2948982,"url":"https://api.github.com/repos/nbudin/devise_openid_authenticatable/issues/comments/2948982"}}