我得到这个错误,当我使用omniauth,设计与导轨3.1.3.I已安装omniauth宝石& omniauth Facebook。没有路线匹配[GET]“/ auth/facebook”
配置routes.rb中为match '/auth/:provider/callback',to: 'authentications#create'
鲽指导https://github.com/intridea/omniauth
每当我浏览网址http://localhost:3003/auth/facebook/,我发现路由错误
**No route matches [GET] "/auth/facebook"**
请this.I帮助有相关帖子在stackoverflow中,似乎没有工作
没有这种改变,我注意到在/ auth(如/ users/auth/facebook)之前添加/ users会起作用。使用相同的宝石版本,看到同样的问题。 – TuteC 2012-03-06 20:25:45
Devise不允许更改config.path_prefix的全局值,但可以在每个提供程序中设置':path_prefix =>'/ auth''。 – link0ff 2014-02-25 16:42:04