# Is there any better method to externalize some configure inf

**URL:** <https://www.ruby-forum.com/t/is-there-any-better-method-to-externalize-some-configure-inf/103127>\
**Category:** Rails\
**Created:** [May 2, 2007, 4:19am UTC](https://www.ruby-forum.com/t/is-there-any-better-method-to-externalize-some-configure-inf/103127 "2007-05-02T04:19:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent.Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/90db22/32.png) [@Vincent.Z](https://www.ruby-forum.com/u/Vincent.Z)\
**Post date:** [May 2, 2007, 4:19am UTC](https://www.ruby-forum.com/t/is-there-any-better-method-to-externalize-some-configure-inf/103127/1 "2007-05-02T04:19:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Vincent.Z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/90db22/32.png) [@Vincent.Z](https://www.ruby-forum.com/u/Vincent.Z)\
**Post date:** [May 2, 2007, 4:46am UTC](https://www.ruby-forum.com/t/is-there-any-better-method-to-externalize-some-configure-inf/103127/2 "2007-05-02T04:46:25Z")

</div>

Check the Configuration Files Loader (http://  
[revolutiononrails.blogspot.com/2007/03/plugin-release-configuration-](http://revolutiononrails.blogspot.com/2007/03/plugin-release-configuration-)  
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.

Val
