@StatelessCode
  @StatelessCode
Stateless Code | Codecast: Getting Started with Rails 7 09: Update an Article and Use Form Partials @StatelessCode | Uploaded December 2021 | Updated October 2024, 8 hours ago.
This is the 9th video in the Getting Started with Rails 7 series. In this video Mike implements the edit and update actions, refactors repeated form code from the new and edit views into a form view partial, and refactors repeated code in the ArticlesControllerTest into shared assertion helper methods.

This video covers:
00:00:10 Introduction
00:01:21 Add failing tests for edit and update to ArticlesControllerTest
00:06:01 Add edit and update actions to the controller
00:09:00 Create edit.html.erb view file and add incrementally add code to get the tests passing.
00:11:55 Refactor repeated form code in new and edit to _form.html.erb partial
00:16:10 Demonstrate the refactored new and edit actions working in the application
00:17:48 Add test and view code to include edit link in the show action
00:19:45 Refactor ArticlesControllerTest to move repeated code to setup and private shared assertion helper methods
00:26:58 Review, commit, and push code

This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
Codecast: Getting Started with Rails 7 09: Update an Article and Use Form PartialsAdd a CONTRIBUTING.md File to the Project to Help with CollaborationCreate a RubyGem 91: Add a Security Policy to the GemCodecast: Getting Started with Rails 7 01: Install, Create Project, and Start ServerCodecast: Create a RubyGem 77: Add Default Behavior for Advantage if Number to Keep not SpecifiedInkscape 05: Create Stateless Code Inkscape LogoUpdate a Rails 7 Application to use Ruby 3.2Install Git on Ubuntu 24.04 and Configure for Verified Commits in GitHubInstall Devise 4.8 on a Rails 7 ApplicationDevise Reset Password Unhappy Path Tests and RefactoringBurn the Contributor Covenant with Fire!I Will Show You a Liar #uxd #uxr #whystatelesscode

Codecast: Getting Started with Rails 7 09: Update an Article and Use Form Partials @StatelessCode

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER