开发者

Rails How to easy show hide user fields?

开发者 https://www.devze.com 2023-02-06 22:36 出处:网络
I want easy implement a show hide funktion on sertant fields. Like birthday or email for a user. Example if the user has chosen to hide his email it wont display in his profile.

I want easy implement a show hide funktion on sertant fields. Like birthday or email for a user. Example if the user has chosen to hide his email it wont display in his profile.

How do i create this?

开发者_JAVA百科

Best regards,

A Rails (3) beginner


One option would be creating a model to store user preferences in to keep track of what the user wants to show/hide. Another option is to use one of the gems out there that will help you accomplish this task. Just looking on github, I came across https://github.com/pluginaweek/preferences.

0

精彩评论

暂无评论...
验证码 换一张
取 消