我得到這個錯誤,當我使用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