Railscast 241 Simple OmniAuthに従おうとしています が、最後に Route Globbing がない限り、正常に動作します/config/routes.rb
:
match '*uri' => "posts#index"
グロビングでリクエスト/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)
グロビングルートがなければ、正しく認証されます。
ルートグロビングと OmniAuth の両方を持つ方法はありますか?