【发布时间】:2011-04-03 17:38:10
【问题描述】:
我正在尝试关注 Railscast 241 Simple OmniAuth,它工作正常,除非我在 /config/routes.rb 末尾有 Route Globbing:
match '*uri' => "posts#index"
如果我使用 globbing 请求 /auth/twitter,那么 OmniAuth 什么也不做:
Started GET "/auth/twitter" for 127.0.0.1 at 2011-04-03 19:17:44 +0200
Processing by PostsController#index as HTML
Parameters: {"uri"=>"auth/twitter"}
Rendered posts/index.html.haml within layouts/application (9.0ms)
Completed 200 OK in 103ms (Views: 14.6ms | ActiveRecord: 0.7ms)
如果没有 globbing 路由,它会正确地进行身份验证。
有没有办法同时使用路由 globbing 和 OmniAuth?
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 routes omniauth glob