Rails 3 Application/User Settings best practice?

后端 未结 4 1555
慢半拍i
慢半拍i 2020-12-28 16:32

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

Are there any gems or best

4条回答
  •  一生所求
    2020-12-28 17:14

    May also want to look at https://github.com/railsjedi/rails_config. Amongst it's many features:

    • Global settings.yml
    • Per-environment settings files (settings/development.yml, settings/production.yml etc.)
    • Local settings files (settings.local.yml, settings/development.local.yml, etc. )
    • Embedded ERB support
    • Rails 3 / Padrino / Sinatra support

提交回复
热议问题