0
我試圖設置omniauth與fitbit api。Omniauth.rb Fitbit期望關鍵字結束
我配置中創建的文件/初始化/ omniauth.rb:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :fitbit, b4aaad9b1 , 88bd74511f
#NOT THE ACTUAL KEYS - I deleted middle numbers to preserve formatting
end
當我運行:
rails s
我收到錯誤
gems/[email protected]/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load': config/initializers/omniauth.rb:3: syntax error, unexpected tIDENTIFIER, expecting keyword_end (SyntaxError)
任何想法如何適應這一點。我很新的oauth-2.0和omniauth:
感謝
只是檢查你在實際文件中的正確位置的逗號 - 這是初始化文件的全部內容? –
不應該把密鑰放在''中嗎? – rdsoze