Skip to content

Still using before_filter when it should be before_action #1228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
juice-coloured opened this issue Nov 23, 2016 · 1 comment
Open

Still using before_filter when it should be before_action #1228

juice-coloured opened this issue Nov 23, 2016 · 1 comment

Comments

@juice-coloured
Copy link

http://tutorials.jumpstartlab.com/projects/blogger.html#i5:-authentication

before_filter is deprecated.

@mitch3lljones
Copy link

This issue is still not resolved. In the 'Securing New Users' section, the line:
before_filter :zero_authors_or_authenticated, only: [:new, :create] needs to be
before_action :zero_authors_or_authenticated, only: [:new, :create]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants