0
私はgmailとOmniAuthのログインをレール3にしようとしています。私はhttp://hoisie.com/2011/09/12/using-google-oauth-with-omniauth/に続いてこの投稿をしています。私はgem 'omniauth'
を私のgemファイルに追加しました。イニシャライザの内部にomniauth.rbを作成します。 Googleのapiサイトで生成されたAPIキーでoauth_secret
を置き換えます。gmailとOmniAuth in railでのログイン3
は、セッションコントローラを作成し、私は次のエラーを取得してアプリケーションを実行していたとき、私のroute.rbに
を
match "/auth/:provider/callback" => "sessions#create"
match "/signout" => "sessions#destroy", :as => :signout
これを追加します。
/usr/lib/ruby/gems/1.8/gems/omniauth-1.0.1/lib/omniauth/builder.rb:25:in `provider': Could not find matching strategy for :google. You may need to install an additional gem (such as omniauth-google). (LoadError)