rails3-bootstrap-devise-cancan icon indicating copy to clipboard operation
rails3-bootstrap-devise-cancan copied to clipboard

Devise using DELETE is not quite correct.

Open jarl-dk opened this issue 12 years ago • 0 comments

In section https://tutorials.railsapps.org/tutorials/rails3-bootstrap-devise-cancan#authentication there is an argument for /config/initializers/devise.rb to contain the following line

config.sign_out_via = Rails.env.test? ? :get : :delete

However commenting this line out does not trigger any (cucumber) tests to fail.

But when the line is changed to

config.sign_out_via = :delete

Then there are some cucumber tests to fail.

That is not in alignment with the explanation found in https://tutorials.railsapps.org/tutorials/rails3-bootstrap-devise-cancan#authentication

jarl-dk avatar Mar 17 '13 19:03 jarl-dk