0

I'm looking for a best-practice approach to using hash-type values in Rails config settings.

I wanted an Heroku-friendly solution like Figaro- but it doesn't allow hashes in the YAML file.

Yarin
  • 173,523
  • 149
  • 402
  • 512
  • does this help? do you mean user config setting? http://quickleft.com/blog/simple-rails-app-configuration-settings – dax Sep 15 '13 at 13:59
  • or this? http://stackoverflow.com/questions/4306412/rails-3-application-user-settings-best-practice – dax Sep 15 '13 at 14:05
  • @dax- not really- the first example doesn't offer any solution for Heroku except manually feeding in the config values at the command line, which obviates the YAML file and so isn't a solution - and the second is for storing user settings not app config settings – Yarin Sep 15 '13 at 14:35

1 Answers1

1

We ended up rolling our own, similar to Figaro but with support for nested values, multiple files, and placeholders. It's pretty awesome: snappconfig!

Yarin
  • 173,523
  • 149
  • 402
  • 512