2016-08-04 23 views
1

我目前正在關注將Google身份驗證集成到Rails應用中的this tutorial。我幾個星期才學習Ruby/Rails(雖然有一些其他的編程經驗),並且在學習本教程的過程中遇到了錯誤 - 不確定這些錯誤是否真的很明顯。Google身份驗證在Rails中 - 「未初始化的常量GoogleAuthExample(NameError)」

當我運行嘗試在本教程中的說明後,啓動服務器時,我得到:

"Exiting 
/Users/adam/Code/rails_projects/quickcal/config/routes.rb:1:in `<top (required)>': uninitialized constant GoogleAuthExample (NameError)" 

任何想法?

編輯:改變GoogleAuthExample到我的應用程序的名稱後 仍然沒有工作...

config/routes.rb:1:in `<top (required)>': uninitialized constant QuickCal (NameError) 

編輯:解決 從以前的編輯繼,只是不得不快速校準更改爲快速校準 - 哎呦!

+0

你重新啓動運行'束install'後的服務器? – siegy22

+0

是的,已重新啓動。我很確定我已經安裝了正確的寶石 – Adam

+0

我只是不確定「GoogleAuthExample」應該指的是什麼...... – Adam

回答

0

確保您使用的應用程序名稱在該教程中的地址爲GoogleAuthExample

例如,在你的路由文件:

Quickcal::Application.routes.draw do 
    # place routes 
end 
+0

config/routes.rb:1:在中:未初始化的常量QuickCal(NameError) – Adam

+0

啊!不是QuickCal,但是Quickcal - 有所不同。感謝您指點我正確的方向。 – Adam

相關問題