Skip to content

undefined local variable or method `authentication_keys' #13

@benwoody

Description

@benwoody

Repro

Building an app from scratch. After running

rails generate devise:install
rails generate couchrest_model:devise User

Running rake routes throws:

undefined local variable or method `authentication_keys' for User:Class

More Info

Base User model of:

class User < CouchRest::Model::Base
  # Include default devise modules. Others available are:
  # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

end

config/initializer/devise.rb contains (shortened):

Devise.setup do |config|

  require 'devise/orm/couchrest_model'

end

config/application.rb contains (shortened):

require File.expand_path('../boot', __FILE__)

# require 'rails/all'
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "rails/test_unit/railtie"
require "couchrest_model"

end

Devise related gems installed:

  • couchrest (1.1.2 239e6c9)
  • couchrest_model (1.1.2 819ddb7)
  • devise (2.0.0.rc f712d07)
  • devise_couch (1.0.0.beta2 4fc35f7)
  • orm_adapter (0.0.3 dcf9cd3)

Full rake error at:
https://gist.github.com/1532865

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions