Ruby on Rails 6
Learn how to pragmatically build and design Rails apps in this step-by-step, project-based course.
Build a full-featured Rails web app from scratch, step by step!
Rails celebrates its 15th anniversary this year, and it's still going strong! Completely updated and re-recorded for Rails 6, this best-selling video course will help you stay on top of your web development game.
Learn how to put all the pieces together to build a complete Ruby on Rails app from idea to deployment in this course. You'll come away with a solid understanding of Rails as well as key design principles and practices to help you craft robust and flexible apps on your own!
“This is the best Rails training hands-down! I've worked through several Rails courses and they don't even come close to explaining things as well as you do.” Thomas Neal
“This Rails course is fabulous! I took a few other courses, but still felt really confused. I learned a lot, feel more comfortable with Rails...This is my favorite Rails course.” Dana Nourie
“Our new hires are loving your online Ruby and Rails courses. In the past, our senior engineers taught new team members Rails on their own. But now with your courses, we are getting new engineers up to speed much easier and faster.” Eirik Holm, AppFolio
“I completed a few Rails tutorials before but this course contained more lightbulb moments than the rest of them put together. The explanations were clean, clear, and precise, and breaking things down into diagrams really helped. I know after completing your courses that I can build pretty much whatever I want in Rails.” Jonathan Mundy
Build a Full-Featured Rails 6 Web App From Scratch
Learn how to rapidly develop and deploy database-driven web apps the Rails way.
You can build amazing web applications with Rails, fast! But a huge part of developer productivity comes from understanding the Rails way of doing things. And the best way to learn Rails is by building real applications from scratch, preferrably with seasoned Rails developers at your side.
In this course, we incrementally build a Rails application step-by-step in the videos so you see exactly how it's done. Then, after each video, you apply what you learned by building another Rails application through a series of guided exercises.
Learning this way makes everything "click", and it's just more fun! 😀
By developing real applications with real code, you'll gain practical experience putting all the pieces together to craft applications using Rails best practices. And you'll come away with a deeper understanding of both the how and the why.
Working in the context of an application, we explore the following topics in-depth:
- Rails Development Environment
- Views and Controllers
- Models and Database Design
- The Asset Pipeline
- One-to-Many Associations
- User Accounts
- Authentication and Authorization
- Many-to-Many and Through Associations
- Custom Routes
- Best Practices, Tips, and Techniques
Now standing up a Rails app that just works isn't the same as designing a good Rails app. Mastering Rails—writing compact, readable, and flexible code—starts by learning the conventions, practices, and idioms fostered by the Rails community.
And having developed with Rails for 15+ years, we've learned our own tips, tricks, and techniques for creating solid Rails apps. So, throughout the course, we discuss design principles and best practices to help you get the most out of Rails!
50 Concise Videos • 44 Chapter Workbook • 8 Hours
Just the way you like 'em: easy to digest, straight to the point, paced just right.
Welcome! After taking a peek at the apps we're going to build in this course, we'll help you get your development environment set up so you can start building Rails apps.
To make sure everything is up and running smoothly, we start by generating a skeleton Rails app and then get a quick lay of the land.
3. Views and Controllers (07:33 and 08:28) free
Rails has some strong opinions about how web apps should be designed. You've probably heard about the MVC design in the abstract, but we break it down in practice so you understand where to put your code and the benefits of a decoupled design.
4. Models (07:38 and 11:21)
Well-designed models are the foundation of any good Rails app. Active Record is the object-relational mapping library that Rails uses to connect your models to your database tables. We don’t yet have a web interface for our app, so instead we see how to create, read, update, and delete records in the database via the console.
5. Connecting MVC (05:57)
Now that we have some events stored in the database, the next step is to display them on the index page. To do that, the model, view, and controller must all work seamlessly together.
6. Migrations (10:30)
The details about our events are looking a little sparse. So we add more attributes, which requires knowing how to manage the database schema with migrations.
7. View Helpers (09:20)
The new event attributes are now displayed on the index page, but their formatting leaves a lot to be desired. We use both built-in and custom view helpers to give our app a lift and make things more reusable. We also answer the question: "Where does business logic belong?"
8. Layouts (03:55)
To give our app a consistent look and feel, all the common layout elements need to live in one definitive place. Because when it comes to the layout of your app, consistency never goes out of style.
9. Stylesheet and Image Assets (07:44)
It's always more enjoyable to work on an application that has some style and images. Adding in these assets gives us an opportunity to learn about the Rails asset pipeline.
10. Routes: Show Page (10:08)
The Rails router receives incoming requests and, depending on a set of rules, dispatches these requests to an appropriate controller action. We start by defining a route that recognizes requests to show an event's details.
11. Routes: Linking Pages (09:14)
In addition to being able to map requests based on defined routes, the router can also generate URLs that match these routes. We learn how to use route helper methods to generate links to navigate between pages.
Coming Up Next...
Forms: Editing and Creating Resources
50 Videos • 8 Hours
🎉 Special Early Access Price!
Up to 10 team members
🎉 Special Early Access Price!
All 3 Courses = Best Deal!
🎉 Special Early Access Price!
For New Rails Developers
Want to learn and become confident with Rails? We designed this course for you!
Getting started with Rails?
Perhaps you've been intrigued by Rails, but haven't yet had the opportunity to learn it comprehensively from scratch. It all starts here! You'll learn the fundamentals of developing web apps with Rails so you're ready to create your first Rails app or jump right into an existing app. No prior experience with Rails is assumed.
If you're new to the Ruby programming language or new to object-oriented programming in general, we strongly recommend taking our Ruby Programming course prior to this course.
Struggling to put all the pieces together?
Rails is a structured framework that relies on conventions to optimize development time and minimize the amount of code you have to write. This makes developing web apps a bit easier… once you understand how everything fits together. Through live coding, animated visuals, and hands-on exercises, you'll learn how to build a full-featured web app so you're more confident (and less frustrated) writing your own Rails code.
Ready for a refresh and a restart?
If you started learning Rails a while back but haven't used it in earnest, this course will help you quickly get back up to speed with the latest version of Rails and current development techniques!
We aim for 100% satisfied developers, so if this course turns out not to be a good fit for you, we'll gladly issue you a 100% refund.
Created by Mike and Nicole
Hi, we're real people just trying to share our passion for creating stuff!
Howdy! Mike here. I helped build and launch one of the first production Rails apps way back in 2005. I've built countless Rails apps since then, and I continue to develop the Rails apps that power our online business. I co-taught the first official Rails course in 2006 and have had the pleasure of teaching Rails to thousands of developers since then. I'm also the author of Advanced Rails Recipes, co-author of Agile Web Development with Rails, and author of Pragmatic Project Automation.
Together Nicole and I own and run The Pragmatic Studio. We'd love to have you join us in the Studio for this great course! Find out more about us…
Join thousands who have learned Rails using this top-rated course!
“It is the absolute best for a first dive into Rails! It teaches you the correct way to start a new Rails app...If you go through the whole course, [the] magic will be explained and you’ll know what the Rails framework does instead of passively look at it do things for you.” Nico Schuele
“I really love the quality of your videos and lectures, and the way it builds up an app. It's the best that I've taken!” Vita Dewi van Beurden
“This is the BEST Rails introduction anywhere on the web! I learned a ton in this course that I didn't learn from other sources online. I was immediately able to start putting together an application that has been stuck in my head for a long time.” Wassim Metallaoui
“Simply amazing. The best online course I have ever experienced. Nicole and Mike, you are the best!” Tony Barone
“This course along with your Ruby Programming course offers the best introduction to learning Rails for a beginning developer. I cannot think of any book or video series that does as good a job.” Eric Ricketts
“I highly recommend Pragmatic Studio's Rails Programming courses! The exercises allow you to build something more complex than a blog and do so by applying what was learned in the lessons rather than merely following along! This format really drove things home for me.” Bart Falzarano
“The main difference I have found after taking a lot of other Rails courses is that you explain things in greater detail which has helped me understand the 'whys'.” David Theroff
“It seems like there are a lot of courses and tutorials out there that are great if you already know how to program in another language, but there are none that I know of (other than Pragmatic Studio!) that is great for a complete beginner. After taking your Ruby course I feel like I have a solid foundation to stand on. Now, learning Rails has been a lot of fun instead of a lot of frustration.” Andrew Markle
“The Rails course is leagues above some others I've tried. First of all, Mike and Nicole have skills as instructors, not just developers, so I didn't feel they were talking above my head. Also it's clear that the lessons and supporting files have been tested and edited -- because they work! The exercises in the example apps are very relevant and I left the course with a whole new level of expertise. I can't recommend this course enough!” Anne Richardson
“I've taken other Rails tutorials but yours really filled in the gaps in my understandings. I can now truly say that I've taken a big step towards developing with Rails.” John Weir
“Everything is great: the material, the teachers, the simple, concise, yet clear explanations in all the courses. I think these are the best Ruby and Rails online courses for people that want to jump into Rails. All of the courses are worth every penny!” Alfian Losari
“This course is fantastic! I had read a couple of Rails tutorial books and sort of understood what the example code was doing, but was having trouble sorting out how to build my own app. This course really filled in some missing pieces.” Terrence Talbot
“After trying many online Ruby on Rails courses across the Internet, this is the most thorough and enjoyable introduction available. Rhys Yorke
“A partner and I just released and started getting sales on an RoR app I created. I was able to build the prototype in a weekend! You all are a big reason I was able to do it. You have done a wonderful job of taking a lot of the 'magic' out of Rails.” Justin Seiter
“Coming into the course, I had so many loose ends regarding how Rails worked, but I finished the course with the confidence to create my own app.” Brad Ballard