Devise action filter for actions that require authentication

后端 未结 2 1423
天涯浪人
天涯浪人 2021-02-20 02:29

I\'m using devise for authentication, however I cant see and action filter for specifying actions that require the user to login, is this included in the devise gem? if not how

2条回答
  •  醉梦人生
    2021-02-20 02:49

    The other solution is to use for example :except => login, its using when the entire app use authentication and you want to have a page with public access

提交回复
热议问题