Sunday, October 21, 2007

Better AppConfig Plugin for Rails

There are plenty of "AppConfig" plugins for Rails already out there, so why did I make one? Three reasons:

  • Break the config files out into different files, one for each environment plus a shared common one.
  • Allows for nested sections and preserves object member notation for them.
  • Allows for lists (arrays).

Installation


git clone git://github.com/cjbottaro/app_config.git vendor/plugins/app_config

Usage


See the README on github (scroll down on the page).

Tests


All the unit tests should pass.

cd RAILS_ROOT/vendor/plugins/app_config
rake test

1 comments:

pinkfuzzymud said...

Pretty awesome Chris; if I get my head above water, I will definitely install it.

Cheers,
Stephen