Skip to content
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

用户注册时, 邮箱是否公开初始值设为 false, 是否有对应的开关? #932

Open
NeverMin opened this issue May 26, 2017 · 0 comments
Labels

Comments

@NeverMin
Copy link
Contributor

公开邮箱会给用户带来更多的垃圾邮件, 所以初始值设为关更为合理, 在文档里没有找到, 只有改代码了.

代码如下:

<label for="user_email_public" class="checkbox"><%= f.check_box :email_public, checked: true %> <%= t("activerecord.at tributes.user.email_public") %></label>

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

No branches or pull requests

2 participants