ArgumentError in Devise::RegistrationsController#create

ArgumentError in Devise::RegistrationsController#create too few
arguments

require ‘elasticsearch/model’

class User < ActiveRecord::Base

Include default devise modules. Others available are:

:confirmable, :lockable, :timeoutable and :omniauthable

devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable,
:confirmable
has_one :profile, dependent: :destroy
has_many :addresses, dependent: :destroy
has_many :schools, through: :profile, dependent: :destroy
has_many :teams, through: :school, dependent: :destroy
GENDRE_TYPES = [ “Female”, “Male” ]
validates :format, inclusion: GENDRE_TYPES
acts_as_messageable
include Elasticsearch::Model
include Elasticsearch::Model::Callbacks
end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs