Circular dependency detected while autoloading constant User

后端 未结 8 1916
心在旅途
心在旅途 2020-12-06 17:17

I\'ve followed this tutorial (http://railscasts.com/episodes/236-omniauth-part-2) for creating facebook login with OmniAuth and Devise and I get this error: Circular depend

相关标签:
8条回答
  • 2020-12-06 18:01

    I created the same error with a typo, I had

    module EmployeeReminderssHelper
    

    when the helper file was called

    employee_reminders_helper.rb
    

    (Note the extra 's')

    0 讨论(0)
  • 2020-12-06 18:06

    I had a similar problem.

    And then realised I have the same file duplicated in different folders inside controller, and that was causing the problem.

    I had both files with the same content:

      app/controllers/logs_controller.rb
      app/controllers/api/logs_controller.rb
    
    0 讨论(0)
提交回复
热议问题