heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
24.01k stars 5.55k forks source link

Rails 7.1.3.3 NameError: uninitialized constant ApplicationRecord (NameError) #5690

Closed dnara closed 6 months ago

dnara commented 6 months ago

Environment

Current behavior

Rails command does not proceed because of this error below.

NameError: uninitialized constant ApplicationRecord (NameError)

class User < ApplicationRecord

Expected behavior

Rails command will be executed.

dnara commented 6 months ago

My bad. application_record.rb file was missing in the Model folder.