简体   繁体   中英

rails + devise - When a User Registers, remember_me is not set

How can I make it so that when a user registers, the remember_me setting is set with devise?

Right now what's happening is a user joins the site, and then when they come back later they have to log in which is not a good experience.

I want remember_me to be set to true by default when a user registers.

ideas? thanks

从设计文档中,生成您的设计视图,然后在sign_in视图/部分中将复选框的值设置为true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM