search for: another_way

Displaying 1 result from an estimated 1 matches for "another_way".

Did you mean: another_key
2005 Dec 19
0
Application globals?
...do they go? I''ve seen a couple of possible places -- a module, the ''application.rb''. Let''s say I have a user-selectable configuration "config" that is stored in a table as an INTEGER. The user could select among: THIS_WAY = 1 THAT_WAY = 2 ANOTHER_WAY = 3 Rather than testing config==2 through the application, I''d rather do "config==''THAT_WAY''". Am I correct is thinking that my application.rb should have something like: CONFIG_OPTIONS = [ [''THIS_WAY'', 1], [''THAT_WAY...