I'm a beginner with RoR and Ruby so please bear with me. I have a .NET/Java background.
Can somebody explain how ActiveRecord actually connects to the database? Is it all done behind the scene everytime I do a call to the model? If so, do I just put my connection info in database.yml? In this case, could somebody point me to a page where there would be code samples on how to configure each database connection (mysql, postgres, sqlite3, etc)
Or do I have to explicity call something like this: ActiveRecord::Base.establish_connection(dbconfig) to make sure other calls will work?
Thank you for your help,