Skip to content
0:00 / 0:00

#phoenixliveview#ecto#ecto.multi

Advanced Forms with Embedded Schemas and Multi: Phoenix App from Scratch, Episode 9

Code and Stuff

6.6K subscribers • 19 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Linked in the descriptionChristianAlexander/tutorial-budget-app
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

2.2K views1 year ago1 recommendation

Web developmentDatabases and dataElixir and ErlangPostgresFull-stack frameworks

How to build complex forms in Phoenix LiveView using Ecto embedded schemas for validation and Ecto.Multi for multi-step database transactions.

[series] Build a complete budget tracking app in Phoenix LiveView! In this episode, we explore advanced form patterns using embedded schemas and Ecto.Multi to create a seamless budget creation experience with automatic monthly funding! Along the way, we'll cover: - Building forms that go beyond simple database models - Using embedded schemas for complex form validation - Implementing multi-step database transactions with Ecto.Multi - Handling optional form fields gracefully - Database transaction rollbacks Links Screen recording software I use (affiliate): screen.studio/@Yy75o Project repo: github.com/ChristianAlexander/tutorial-budget-app Related changes: github.com/ChristianAlexander/tutorial-budget-app/pull/16 Related Documentation Ecto Embedded Schemas: hexdocs.pm/ecto/embedded-schemas.html Ecto.Multi: hexdocs.pm/ecto/Ecto.Multi.html Phoenix.Component.inputs_for: hexdocs.pm/phoenix_live_view/Phoenix.Component.html#inputs_f… Timestamps Context / The Problem - Embedded Schema - Refactor into a Form Module - A New Field - Ecto Multi - Our Own Multi - Handling a Null - What's the Point? -

Why it's here

1 person recommends this

What people say. Recommended as a clear tutorial on handling complex form validations and multi-step transactions in Phoenix.

u/GiraffeFireAlchemistin r/elixir • Recommends

Advanced Forms with Embedded Schemas and Multi: Phoenix App from Scratch, Episode 9