In the Model-View-Controller (MVC) architecture, the Model is responsible for representing the data and the business logic of an application. In Ruby on Rails, the Model is implemented using the ActiveRecord pattern, which is a powerful and easy-to-use ORM (Object-Relational Mapping) tool. In this article, we will explore the Model part of MVC in Rails and provide code examples to illustrate its usage.
I'm Daniel Viklund.
Developer by day, Father & Husband as much as I can!
I'm a Software Engineer, based in Hong Kong, specialising in Web Development.
I have a very broad experience, having worked on both backend and frontend development. My comfort zones are the Ruby on Rails and React frameworks.
When I'm not working, I exercise (I wish), study new things (definitely not on Twitter), and spend time with my kids (this is true!)