Stateless Code

    • About
    • Videos
      • Why Stateless Code?
      • Getting Started With Rails 7
      • Ruby on Rails 7: NerdDice.com
      • Create a Ruby Gem: NerdDice
      • Enough Inkscape to be Dangerous
      • statelesscode.com WordPress
      • Setup and Configuration
      • Stateless Code Retrospectives
      • Contributing to Ruby on Rails
      • News and Events
      • Stateless Opinion
Illustration of a bird flying.
  • Codecast: Getting Started with Rails 7 Episode 20: Basic Auth Part 2 and Finish the Guide

    Codecast: Getting Started with Rails 7 Episode 20: Basic Auth Part 2 and Finish the Guide

    This is the 20th video in the Getting Started with Rails 7 series. In this video Mike continues where he left off in video 19. He comes up with an admittedly hacky solution to get the existing system tests passing, by changing the articles show action to require basic auth and visiting the page twice.…

    December 20, 2022
  • Getting Started with Rails 7 Episode 19: Basic Auth Part 1

    Getting Started with Rails 7 Episode 19: Basic Auth Part 1

    This is the 19th video in the Getting Started with Rails 7 series. In this video Mike starts the section on basic authentication and gets it working. Then he tries and does not (yet) succeed in getting the browser tests working with basic auth. This video covers: Notes: The code for this series is open…

    December 20, 2022
  • Getting Started with Rails 7 Episode 18: Destroy Comments with Turbo

    Getting Started with Rails 7 Episode 18: Destroy Comments with Turbo

    This is the 18th video in the Getting Started with Rails 7 series. In this video Mike adds the ability to delete comments. Similar to article deletion, he needs to make sure the Turbo confirm and :see_other status are configured correctly. In order to test this he uses browser-driven Rails system tests. This video covers:…

    December 19, 2022
  • Getting Started with Rails 7 Episode 17: Refactor Tests

    Getting Started with Rails 7 Episode 17: Refactor Tests

    This is the 17th video in the Getting Started with Rails 7 series. In this video Mike refactors the existing tests to move shared tests between models to a helper module that both test classes include. In addition, he creates a method to test that all fixtures are valid for each model. After that, he…

    December 19, 2022
  • Codecast: Getting Started with Rails 7 Episode 16: Refactor Repeated Code Using Concerns

    Codecast: Getting Started with Rails 7 Episode 16: Refactor Repeated Code Using Concerns

    This is the 16th video in the Getting Started with Rails 7 series. In this video Mike refactors the code written in the last video into a module called Visible that extends ActiveSupport::Concern. This module becomes the new home for the status-related code for both articles and comments. The two models both include the Visible…

    December 19, 2022
  • Getting Started with Rails 7 Episode 15: Prepare for Concerns

    Getting Started with Rails 7 Episode 15: Prepare for Concerns

    This is the 15th video in the Getting Started with Rails 7 series. In this video Mike provides an overview of modules, mixins, and concerns. Then he sets up a status field that has duplicated functionality between the Article and the Comment. In this episode he gets everything set up and working so that he…

    December 19, 2022
  • Getting Started with Rails 7 Episode 14: Refactor into Comment Partials

    Getting Started with Rails 7 Episode 14: Refactor into Comment Partials

    This is the 14th video in the Getting Started with Rails 7 series. In this video Mike starts section 9 of the Getting Started guide on refactoring. He makes use of the previously introduced concept of partials to refactor the comment display and the comment form into partials that the articles show view renders. This…

    December 16, 2022
  • Getting Started with Rails 7 Episode 13: Create Comments for an Article

    Getting Started with Rails 7 Episode 13: Create Comments for an Article

    This is the 13th video in the Getting Started with Rails 7 series. In this video Mike generates the CommentsController and adds a nested resource form to the articles show view. Then he updates the app with functionality for creating and displaying comments. This video covers: The code for this series is open source and…

    December 16, 2022
  • Getting Started with Rails 7 Episode 12: Add a Model and Route for Comments

    Getting Started with Rails 7 Episode 12: Add a Model and Route for Comments

    This is the 12th video in the Getting Started with Rails 7 series. In this video Mike uses the Rails model generator to generate a model for comments on articles. He reviews the generated code, tweaks a couple of associations, customizes the fixtures, adds a nested route for comments. At the end, he re-runs the…

    December 13, 2022
  • Codecast: Getting Started with Rails 7 Episode 11: Use a Scaffold Generator to Quickly Produce a Resource

    Codecast: Getting Started with Rails 7 Episode 11: Use a Scaffold Generator to Quickly Produce a Resource

    “Do you mean to tell me that we could have done all the work from the previous ten videos in half an hour?!” Yes. (But the purpose of the Getting Started with Rails guide is education, so it slowed things down, added them in incrementally, and explained them.) This is the 11th video in the…

    December 13, 2022
←Previous Page
1 2 3 4 … 9
Next Page→

Stateless Code

Proudly powered by WordPress