Where to store small information in a Rails project

时间:2016-03-04 17:56:52

标签: ruby-on-rails

What is the best way to store non-sensitive tiny pieces of information. For example i would like to save the last time the report was updated or maybe the maximum number of users connected at the same time, so nothing bigger then an integer or a string.

I am thinking:

  • Saving them on a model but seems like an overkill to me.
  • Saving them on a temp file?
  • Creating a view cached partial that stores the value inside?

Is there any best practice for this kind of cases?

0 个答案:

没有答案