我正在使用 OmniAuth 进行 Facebook 身份验证,但我不断收到此错误:
Missing template authentications/index with
{:handlers=>[:rjs, :rhtml, :builder, :rxml, :erb],
:locale=>[:en, :en], :formats=>[:html]} in view paths
View 文件存在于 app 目录中,但显然没有看到。
最佳答案
添加
resources :authentications
到你的 config/routes.rb 文件
关于ruby-on-rails - Omniauth 中的 "Missing template"错误(ruby-on-rails),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7774763/