遵循教程后出现意外结果 (omniauth twitter) 没有路由匹配 [GET] “/auth/twitter”
我一步步遵循本指南: http://railscasts.com/episodes/241-simple-omniauth
当我点击进入 Twitter 的按钮时,结果是这样的:
没有路由匹配 [GET]“/auth/twitter”
我做了几次尝试,以慢动作观看视频......但结果总是相同
I followed this guide step by step: http://railscasts.com/episodes/241-simple-omniauth
When I click the button that would take me on twitter, the result is this:
No route matches [GET] "/auth/twitter"
I made several attempts, watching the video in slow motion ... but the result is always the same
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以后,尝试分享您的相关代码以进行调试。但是,请确保您具备以下条件。
在您的路线中,确保您
的设计初始值设定项中有类似 and 的内容
In the future, try to share your relevant code for debugging purposes. However, make sure you have the following.
In your routes, make sure you have something like
and in your, devise initializer
您需要在 Devise gem 使用的模型中注释掉 ':omniauthable' (通常是模型 'User' = user.rb 文件):
使用 ':omniauthable' 调用意味着加载 devise/omniauth 组件(这会导致冲突使用您的omniauth 设置)。
You need to comment out ':omniauthable' in your model used by the Devise gem (usually it's the model 'User' = the user.rb file):
Using the ':omniauthable' call means loading devise/omniauth components (which cause conflicts with your omniauth setup).