sekedar berbagi, saya sangat suka menggunakan yaml file dengan shortcut 
dan overriding otomatis, efektif dan efisien, berikut ini ada contohnya, 
idenya saya colong dari merb -_-V

development: &defaults
   adapter: sqlite3
   database: db/development.sqlite3
   timeout: 5000

test:
   <<: *defaults
   database: db/test.sqlite3

production:
   <<: *defaults
   database: db/production.sqlite3


feby artandi wrote:

> config/dabase.yml. Ini contoh settingannya:
>   development:
>   adapter: mysql
>   database: namadatabase_development
>   user: *user_ke_mysql
>   password: *password_ke_mysql

-- 
(http://ariekusumaatmaja.wordpress.com && 
http://ariekeren.blogdetik.com) ||
                 "Don't ask if you can ask, just ask!", R2D2

Kirim email ke