ruby on rails - Devise failing to generate views with error "'require': cannot load such file -- devise/orm/false" -
i trying generate views devise upon adding devise existing app. rails g devise:install
step completes successfully, when try rails g devise:views
, error saying 'require': cannot load such file -- devise/orm/false
after did lot of digging, realized problem first step appeared completing successfully, in reality, had atypical rails config/application.rb
wasn't require 'rails/all'
instead requiring modules needed (which didn't include active_record @ time). ended fixing along way, because wasn't included in application.rb
when ran rails g devise:install
, line require 'devise/orm/false'
persisted in auto-generated config/initializers/devise.rb
, , fail anytime trying load. i'm sure simple solution replace word "false" there "active_record", went ahead , deleted whole file , reran rails g devise:install
command in case there else in there messed up.
tl;dr make sure including rails/active_record before run rails g devise:install
, , if didn't, recreate file once you've included in config/application.rb
Comments
Post a Comment