How to add configuration

I want to add configuration used for my own app, seems like the second
you mentioned. I create a file, adding a global variable in it for my
use. Then I include the module when needed. Though it works fine, I
don’t think it’s a good way when configure items increased. So I think
the ROR must have a predefined file for programmers to config their own
global variables.
I found a folder under rails being named “config”, containing two
subfolders(“environments”,“initializers”) and several .rb files. I’m
not sure if I can do this in one of them. If configured, can I use the
global variable directly? Or I shall use “require” or “include” in my
code using it.
thanks

did get ur mean …

Wason Wang wrote:

I want to add configuration used for my own app, seems like the second
you mentioned. I create a file, adding a global variable in it for my
use. Then I include the module when needed. Though it works fine, I
don’t think it’s a good way when configure items increased. So I think
the ROR must have a predefined file for programmers to config their own
global variables.
I found a folder under rails being named “config”, containing two
subfolders(“environments”,“initializers”) and several .rb files. I’m
not sure if I can do this in one of them. If configured, can I use the
global variable directly? Or I shall use “require” or “include” in my
code using it.
thanks