Published about 4 years ago
For this post I want to talk about the basic structure of Ruby on Rails. Rails is a MVC software architectural pattern. Where M stands for model, V for view, and C for controller. Most websites communicate with databases to pull information and display it to the user. However, there are some that do not and those are called static pages. Rails though is a Ruby web application framework built to work with databases.
In order to control the information that is accessible from the database rails uses the MVC pattern. When a user types in a web address it first goes to your routes. Your routes will direct you to a controller. What is the controller’s job? Well it’s in the name. It controls a lot of the data flow of the application. It is the control... Continue reading