I’d like to know what’s a good way to store app wide settings variables.
Because for example I have different fields in models that all should be
20 chars long (validates_length_of :maximum => 20). I don’t want to
hard-code that, because in future this could change.
So where should I store such vars? In the environment.rb file in
MAX_NAME_LENGTH = 20
Or are there better ways or even something like a Rails-specific
construct for such vars?
Thanks for hints. Joshua