ruby - Where to store (structured) configuration data in Rails -


for rails 3 application i'm writing, considering reading of configuration data xml, yaml or json files on local filesystem.

the point is: where should put files? there default location in rails apps store kind of content?

as side note, app deployed on heroku.

what is:

  • if file general configuration file: create yaml file in directory /config 1 upper class key per environment
  • if have file each environment (big project): create 1 yaml per environment , store them in /config/environments/

then create initializer load yaml, symbolize keys of config hash , assign constant app_config


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -