Rails 3应用程序/用户设置最佳实践? [英] Rails 3 Application/User Settings best practice?

查看:121
本文介绍了Rails 3应用程序/用户设置最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前需要允许管理员可配置的全局设置以及Rails 3应用程序中的每个用户可配置的设置。

I have a current need for allowing both admin configurable global settings as well as per-user configurable settings within a Rails 3 app.

有任何宝石或最好的

我发现了一些宝石和博客文章,但他们都可以追溯到2006-08年,不再维护。非常感谢。

I've found a couple of gems and blog posts but they all date back to 2006-08 and are no longer maintained. Any pointers would be appreciated, thanks.

注意:我看到此问题与序列化的哈希响应,但在我特定的情况下,需要根据用户的设置查询数据库的能力 - 我不认为一个序列化的哈希在这种情况下可以正常工作。

Note: I have seen this question with the serialised hash response but in my particular case the ability to query the database for users based on their settings is required - I don't think a serialized hash would work well in that situation.

推荐答案

熊果实。找到 Georg Ledermann的rails-rails设置,看起来它会做我所需要的。

As always right after asking for help my search bears fruit. Found Georg Ledermann's fork of rails-settings that looks like it will do just what I need.

这篇关于Rails 3应用程序/用户设置最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆