Save to delicious. Sometimes when using Active Record you may want to create a database connection to a database other than the default database specified in your database.yml file. When this happens, the easiest way to do it is to use the Class-level convenience method on ActiveRecord::Base. Like this: Imagine your database.yml entry looks like [...]

If you enjoy our post, feel free to subscribes to our rss feeds