MVC in Ruby on Rails

MVC – model, view, controller

MVC provide to separated of coding and design in app. This property provide to easiness for programmer.

  • M – Model => Objects, Object-oriented, data, database

  • V – View => Presentations layer user section, HTML, CSS, javascript …

  • C – Controller => Process of respond user action, walk change model on the view make decision.

Basic web architecture

Browser <=> Pages <=> Databases

Another web architecture

mvc architecture