Specify which controllers to exclude from before_filter

后端 未结 4 645
無奈伤痛
無奈伤痛 2020-12-13 01:11

I\'m using devise for authentication and have some before_filters in my application controller. Issue I\'m seeing is that when I try to logout the before_filter intercepts t

4条回答
  •  抹茶落季
    2020-12-13 01:22

    Answers above are good except: DEPRECATION WARNING: skip_before_filter is deprecated and will be removed in Rails 5.1. Use skip_before_action instead.

    So please use before_action and skip_before_action instead of *-filter.

提交回复
热议问题