使用设计的Current_user方法

Dan*_*lly 20 ruby-on-rails devise

我今天刚刚开始使用设计,我想知道我是否必须在我的应用程序控制器中创建当前用户方法,或者它是否已经通过设计创建?

Nic*_*nil 28

Devise为您和其他人创建了帮助方法.检查https://github.com/plataformatec/devise#controller-filters-and-helpers.