I was wondering if there was any good articles out there that explain how the architecture of rails works, i.e how it handles the server connection, how it queries the database so easily etc.
Rails combines the Ruby programming language with HTML, CSS, and JavaScript to create a web application that runs on a web server. Because it runs on a web server, Rails is considered a server-side, or “back end,” web application development platform (the web browser is the “front end”).
Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database. It is an implementation of the Active Record pattern which itself is a description of an Object Relational Mapping system.
DRY stands for Don't Repeat Yourself.
Rails defaults to using a SQLite database when creating a new project, but you can always change it later.
Take a look at the blog of Yehuda Katz. He wrote a bunch of articles about the architecture of Rails, like this one. Watch The Renegades Guide to Hacking Rails. Try to find and read that book, it has a good chapter about the internals of Rails.
I forgot to mention the excellent Under the hood series by Jamis Buck. He really describes how the certain parts of Rails work.
You may also dive into the Rails sources. They are well commented, easy to read and understand. Read them just like any book.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With