3 ms·
Yes! One of my little frustrations with Rails is that most configuration is done in Ruby, but then every now and again you're supposed to configure something wi
by sanderjd 12y ago
Yes! One of my little frustrations with Rails is that most configuration is done in Ruby, but then every now and again you're supposed to configure something with YAML, and then even weirder, some YAML files are actually implicitly interpreted as erb. It's weird and I'm not sure what the point is.
- yen223 12y agoThe idea is like what crdoconnor mentioned - it's good design to strictly separate 'data' from 'code', and most configurations are 'data'. Unfortunately, in practice there are plenty of times when a small loop or a conditional would greatly enhance DRY in config files.