Skip to content
Getting Started With Rails 7 logo (2:1 ratio)
Stateless Code and Rails 7

Ruby on Rails 7 is out! Code along on a guided journey through the Ruby on Rails 7 Getting Started Guide with Test Driven Development. There has never been a better time to learn Ruby on Rails. Hit the ground running with the newest version!

Rails 7 Getting Started Guide topics

The Ruby on Rails 7 Getting Started guide provides you with the basics that you need to get up and running. By the end of the guide you will have a simple blog up and running with the ability to create, read, update, and delete (CRUD) articles and comments on the blog. The guide teaches you the basics about the Rails model, view, controller (MVC) framework. As a result, you’ll learn the following:

  • Generate controllers with actions
  • Create and modify Rails routes
  • Create models and database migrations and validate input
  • Interact with your data in the Rails console
  • Display your content to the web page with views and refactor repeated code into partials
  • Associate child comments with parent articles
  • Refactor repeated logic into concerns shared by multiple models
  • Authenticate users with basic authentication in your controllers

Get Started with Rails the Stateless Code Way

Our video series amplifies the guide by adding a little bit more to the journey. We use Test Driven Development with MiniTest to make sure our application does what we want it to do. In addition, we leave the mistakes in the videos on purpose so that you can learn how to troubleshoot when you see errors.

After we complete the guide, we’ll explore some of the other goodies in Rails 7:

  • Use ActionText to give your users a rich text editor
  • Add broadcasts_to in a model to communicate updates in real-time
  • Improve styling by importing styles from a Content Distribution network
  • Create a mailer that notifies users when significant events occur in your application
  • Add a Stimulus controller for additional client-side interaction

Videos in the Series

In addition to working through this series on our site, you can view the playlist on YouTube.

  1. Install, Create Project, and Start Server
  2. Setup Git and Create the First Controller
  3. Autoloading, Generate and Migrate a Model
  4. Model CRUD in the Console and Listing Articles
  5. Show a Single Article
  6. Resourceful Routes for Articles and the link_to Helper
  7. Create Articles in the Application
  8. Model Validations and Form Error Messages
  9. Update an Article and Use Form Partials
  10. Destroy an Article and Get it Working with Turbo
  11. Use a Scaffold Generator to Quickly Produce a Resource
  12. Add a Model and Route for Comments
  13. Create Comments for an Article
  14. Refactor into Comment Partials
  15. Prepare for Concerns
  16. Refactor Repeated Code Using Concerns
  17. Refactor Tests
  18. Destroy Comments with Turbo
  19. Basic Auth Part 1
  20. Basic Auth Part 2 and Finish the Guide
  21. Upgrades, Bug Fixes, and Tweaks
  22. Broadcast Comment Changes to the Article with Turbo
  23. Add Styles from CDNs to Improve Design
  24. Use ActionText for Rich Text Content
  25. Set Up a Comments Mailer
  26. Fix Rich Text Fixtures and Validations
  27. Add a Stimulus Controller for Client-Side Interaction
  28. Retrospective for the Series

Source Code on GitHub

We make all of the source code for this project available in our GitHub Rails 7 Getting Started repo. In addition, we release any work unique to this project under the UNLICENSE and CC0 – No rights reserved.