Circular dependency detected while autoloading constant User

后端 未结 8 1914
心在旅途
心在旅途 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: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
    

提交回复
热议问题