O'Reilly logo
  • Amela Turkavonic thinks this is interesting:

A practical example of automatically generating a config file

Now that you have some knowledge, we would like to show you how Rake can be used in practice. Every Rails developer knows that the first step they have to take when they have a new project is to create the config/database.yml file. It's a rather boring process and includes a lot of manual processes. If there is a config/database.yml.template file, you are lucky and you have to just copy it to config/database.yml. However, if this template file is not in the project, you will h...