Displaying 1 result from an estimated 1 matches for "max_name_length".
Did you mean:
max_frame_length
2006 Aug 16
2
Where and how to store app wide settings variables?
...es.
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
constants like...?
MAX_NAME_LENGTH = 20
Or are there better ways or even something like a Rails-specific
construct for such vars?
Thanks for hints. Joshua
--
Posted via http://www.ruby-forum.com/.