{"id":231,"date":"2022-08-30T14:57:54","date_gmt":"2022-08-30T14:57:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/08\/31\/devise-omniauth-installation-error-undefined-method-omniauth-for-devisemodule-nomethoderror-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:57:54","modified_gmt":"2022-08-30T14:57:54","slug":"devise-omniauth-installation-error-undefined-method-omniauth-for-devisemodule-nomethoderror-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/devise-omniauth-installation-error-undefined-method-omniauth-for-devisemodule-nomethoderror-record-and-share-programming-errors\/","title":{"rendered":"Devise + OmniAuth Installation Error: undefined method `omniauth&#39; for Devise:Module (NoMethodError)-Record and share programming errors"},"content":{"rendered":"<p>I&#8217;m working to allow users to FB Connect into my app for authentcation. My app currently uses devise so I&#8217;m following the tutorial here:<\/p>\n<p>https:\/\/github.com\/plataformatec\/devise\/wiki\/OmniAuth%3A-Overview<\/p>\n<p>After adding this to my gem file:<\/p>\n<pre><code>gem \"oa-oauth\", :require =&gt; \"omniauth\/oauth\"\n<\/code><\/pre>\n<p>This to config\/initializers\/devise.rb:<\/p>\n<pre><code>config.omniauth :facebook, \"APP_ID\", \"APP_SECRET\"\n<\/code><\/pre>\n<p>This to app\/models\/User.rb<\/p>\n<pre><code>devise :omniauthable\n<\/code><\/pre>\n<p>After running bundle install, when I run rails s I get the error. Ideas why? Thanks<\/p>\n<p id=\"rop\"><small>Originally posted 2013-08-31 05:29:20. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m working to allow users to FB Connect into my app for authentcation. My app currently uses devise so I&#8217;m following the tutorial here: https:\/\/github.com\/plataformatec\/devise\/wiki\/OmniAuth%3A-Overview After adding this to my gem file: gem &#8220;oa-oauth&#8221;, :require =&gt; &#8220;omniauth\/oauth&#8221; This to config\/initializers\/devise.rb: config.omniauth :facebook, &#8220;APP_ID&#8221;, &#8220;APP_SECRET&#8221; This to app\/models\/User.rb devise :omniauthable After running bundle install, when I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-231","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=231"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}