Ruby on Rails #70: Hotwire: Live form validations and previews

04/04/2022 (about 2 years ago)

Get live character counter, validations, content preview while you fill in a form using Hotwire

Article: Live form validations and error rendering. Live markdown preview:

Episode source code:

0:00 Solution walkthrough
1:46 Scaffold Tasks
2:30 Validate Tasks
3:16 Add second submit button
6:58 Previewable Object
9:45 No page redirect. TurboStreams
12:50 Stimulus Autosubmit
16:47 Debounce

Sign in to join the conversation