Where/how to store a setting?

I have a task which queries the database and gets the relevant records
from the last 5 days. I’d like to make that 5 a variable. Where/how
would you recommend storing that data so that it can be accessed and
changed and used ?
A “Settings” database?

Aldric G. wrote:

I have a task which queries the database and gets the relevant records
from the last 5 days. I’d like to make that 5 a variable. Where/how
would you recommend storing that data so that it can be accessed and
changed and used ?
A “Settings” database?

You don’t need a separate DB. Either a separate table or a YAML
config file (see the appropriate Railscast) would be my vote. Or store
it in the class that does the querying.

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]Â

Marnen Laibow-Koser wrote:

Aldric G. wrote:

Where/how
would you recommend storing that data so that it can be accessed and
changed and used ?
A “Settings” database?

You don’t need a separate DB. Either a separate table or a YAML
config file (see the appropriate Railscast) would be my vote. Or store
it in the class that does the querying.

Ugh, I -always- use the wrong word. I have to stop this. Thanks for the
advice and options.