You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what's happening. I already had devise setup with a user model.
Running: rails generate trestle:auth:install User
/home/bendangelo/Projects/englishfox_web/config/initializers/trestle.rb:141:in `<main>': undefined local variable or method `config' for main (NameError)
config.auth.user_class = -> { User }
^^^^^^
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/engine.rb:689:in `load'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/engine.rb:689:in `block in load_config_initializer'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/activesupport-7.2.1/lib/active_support/notifications.rb:212:in `instrument'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/engine.rb:688:in `load_config_initializer'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/engine.rb:642:in `block (2 levels) in <class:Engine>'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/engine.rb:641:in `each'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/engine.rb:641:in `block in <class:Engine>'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/initializable.rb:32:in `instance_exec'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/initializable.rb:32:in `run'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:425:in `block (2 levels) in each_strongly_connected_component_from'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:424:in `block in each_strongly_connected_component_from'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/initializable.rb:50:in `each'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/initializable.rb:50:in `tsort_each_child'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:418:in `call'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:418:in `each_strongly_connected_component_from'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:350:in `each'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:350:in `call'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/initializable.rb:60:in `run_initializers'
from /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/railties-7.2.1/lib/rails/application.rb:435:in `initialize!'
The text was updated successfully, but these errors were encountered:
Not sure what's happening. I already had devise setup with a user model.
Running:
rails generate trestle:auth:install User
The text was updated successfully, but these errors were encountered: