is there any better method to externalize some configure info from code?

i wanna get some var or constant out of the code files. pls show your ways.thanks!

Check the Configuration Files Loader (http:// files.html) gem/plugin. It allows to put whatever you need into a YAML file under the config/ directory of an application/plugin/gem and then load it sectioned/parsed/ERBd.