Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good explanation about how rails works behind the scenes?

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.

like image 272
Mo. Avatar asked Aug 24 '10 09:08

Mo.


People also ask

How does ruby on rails work?

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”).

What's the purpose of active record?

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.

Does Ruby dry stand for?

DRY stands for Don't Repeat Yourself.

What database does Rails use?

Rails defaults to using a SQLite database when creating a new project, but you can always change it later.


1 Answers

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.

like image 85
Daniel O'Hara Avatar answered Oct 14 '22 15:10

Daniel O'Hara