local variable or method `config' for main:Object (NameError)

前端 未结 3 1426
猫巷女王i
猫巷女王i 2021-02-14 03:14

I\'m following this post for integrating Omniauth Twitter + Devise http://sourcey.com/rails-4-omniauth-using-devise-with-twitter-facebook-and-linkedin/ and I have encounter an i

3条回答
  •  孤街浪徒
    2021-02-14 03:26

    I have also faced such an error(

    NameError: undefined local variable or method `server' for main:Object
            from (irb):1
            from C:/RailsInstaller/Ruby2.2.0/bin/irb:11:in `
    '),

    )

    maybe its because I am a Newbie in ruby on rails. hence instead of starting the rails server from direct command line I tried it to start from inside of IRB hence I got that error.

    when I came out of IRB and started the server again from CMD it started smoothly.

提交回复
热议问题