improve error message when using omniauth callbacks under a dynamic segment

This commit is contained in:
Victor Emanouilov
2015-04-21 13:02:28 +03:00
parent 7ca70a47ce
commit 85d75702ed

View File

@@ -414,7 +414,7 @@ and you have set #{mapping.fullpath.inspect}. You can work around by passing
match "/users/auth/:action/callback",
constraints: { action: /google|facebook/ },
to: "devise/omniauth_callbacks",
to: "devise/omniauth_callbacks#:action",
as: :omniauth_callback,
via: [:get, :post]
ERROR