Skip to content

Getting Started with Rails 7 Episode 2: Setup Git and Create the First Controller

This is the 2nd video in the Getting Started with Rails 7 series. In this video Mike sets up Git with the GitHub remote, creates the initial commit, generates the ArticlesController, configures routing and writes the first test for the application.

Adding a route and controller for articles#index

This video covers:

  • 00:00:10 Introduction
  • 00:00:39 Create initial commit and push to remote before making any changes (Includles review of .gitignore file)
  • 00:06:49 Say “Hello”, Rails. Create articles index route and explore the Routing Error page
  • 00:11:18 Generate the ArticlesController and explore the files
  • 00:15:04 Write a test for the ArticlesController
  • 00:21:12 Modify the articles index view file and incorporate into tests
  • 00:23:20 Set the root route of the application to articles index instead of the smoke test page
  • 00:24:48 Commit and push changes
  • 00:26:24 Promotion of our Create a Ruby Gem: NerdDice series

GitHub commits for this video

The code for this series is open source and available on GitHub. This video contains two commits:

Leave a Reply