这可能是一个错误。
我正在从Rails 3.2升级到Rails 4.0,并使用 devise 3.5.10
sign_out操作适用于Rails 3,但不适用于Rails 4.0,该操作仅重定向到根路径。
这是日志
Started DELETE "/usuarios/sign_out" for x.x.x.x at 2019-02-12 01:13:55 +0000
Processing by Devise::SessionsController#destroy as HTML
Usuario Load (0.4ms) SELECT "usuarios".* FROM "usuarios" WHERE "usuarios"."id" = 1 ORDER BY "usuarios"."id" ASC LIMIT 1
Can't verify CSRF token authenticity
(0.2ms) SELECT COUNT(*) FROM "adiministradoras"
Adiministradora Load (0.3ms) SELECT "adiministradoras".* FROM "adiministradoras" ORDER BY "adiministradoras"."id" ASC LIMIT 1
Redirected to https://server.com/
Completed 302 Found in 7ms (ActiveRecord: 0.9ms)