Rails 3 Application/User Settings best practice?

后端 未结 4 1588
慢半拍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:11

    For rails 4, if you are using postgresql, you can use HStore, which is just like a serializable attribute, but you do SQL queries with it.

    For rails 3, you can use activerecord-postgres-hstore gem.

提交回复
热议问题