###前提・実現したいこと
railsで、heroku open を実行したところに次のエラーが出てしまいます。
###発生している問題・エラーメッセージ
/app/app/controllers/Users/omniauth_callbacks_controller.rb:1:in `<top (required)>': uninitialized constant Users (NameError)
###該当のソースコード
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController def facebook # You need to implement the method below in your model (e.g. app/models/user.rb) @user = User.from_omniauth(request.env["omniauth.auth"]) if @user.persisted? sign_in_and_redirect @user, :event => :authentication #this will throw if @user is not activated set_flash_message(:notice, :success, :kind => "Facebook") if is_navigational_format? else session["devise.facebook_data"] = request.env["omniauth.auth"] redirect_to new_user_registration_url end end def failure redirect_to root_path end end サーバー上 Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.
###試したこと
ググって対処法をほとんど試したのですがダメでした。
バージョンが新しいものの情報も少なかったです
###補足情報(言語/FW/ツール等のバージョンなど)
ruby 2.3.1
rails 5.1.2
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。