Devise guide - Add sign-up and login links: remove `protect_from_forgery` comment
morinoko opened this issue · 3 comments
morinoko commented
Devise guide tells students to
Open up
app/controllers/application_controller.rb
and add:
before_action :authenticate_user!
afterprotect_from_forgery with: :exception
.
But protect_from_forgery with: :exception
is not longer present in Rails 6, so this comment can be removed.
vesan commented
Thanks! Merged the PR.