railsgirls/guides.railsgirls.com

Devise guide - Add sign-up and login links: remove `protect_from_forgery` comment

morinoko opened this issue · 3 comments

Devise guide tells students to

Open up app/controllers/application_controller.rb and add:
before_action :authenticate_user!
after protect_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

@morinoko You want to create a pull request of this change?

@vesan Sorry it took so long, but I finally created a pull request: #439

vesan commented

Thanks! Merged the PR.