Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.


The MVC Pattern in Ruby

via Udacity


Learn how to organize the code for your web apps, and why it's important. You’ll be using the MVC Design Pattern in the web application micro-framework, Sinatra.

Why Take This Course?

The ability to organize code is a critical skill for today’s successful programmer, who needs to manage larger and more complex projects than ever before. Thankfully, patterns for organizing code in web applications (like the MVC design pattern) are available. This course will teach you to use these patterns effectively, so when faced with the challenge of hooking up your app to a new API, or the need to display data to users in multiple ways, you’ll be ready.


You will learn why the MVC design pattern exists, how to use it successfully, and how to refactor code for an existing website created with Sinatra.

Lesson 1: The MVC Design Pattern with Ruby

First, you’ll learn about the challenges of developing a website with disorganized code by meeting the creator of the sample Sinatra code for this course. Then you’ll learn about how design patterns like MVC can help with some of these challenges. You’ll use your knowledge to organize the code using the MVC design pattern, and then add new features to the site with the newly refactored code.

Related Courses


Start your review of The MVC Pattern in Ruby

Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free