Skip to main content
CourseFlix

Phlex on Rails

7h 58m 57s
English
Paid

Phlex helps you build clean and fast views in Rails. This course shows you how to use it to make clear and stable UIs without heavy templates or large JavaScript tools. You will learn how to add Phlex to a current app step by step, and how to build with small, clear parts that are easy to test and change.

Why Use Phlex in Rails

Many Rails apps have slow or messy view code. Partials pile up. Helpers grow large. Frontend tools add stress. Phlex gives you a simple way to write views with plain Ruby. It removes the guesswork and keeps the view layer small and clear.

Build Views With Hotwire

You will learn how Phlex works with Hotwire to make fast pages without React or complex builds. You will see how Turbo and Stimulus cover most client needs and cut out heavy logic on the browser.

Use Superform for Forms

Forms are hard to manage in large apps. Superform helps you build forms as reusable components. You get full control over fields, errors, and layout while keeping the code short and easy to read.

Replace ERB With Components

Old ERB, Haml, or Slim files can grow wild over time. Phlex components keep structure clear. Each part does one thing. You can follow the flow of the page with less jumping around. This makes testing and scaling easier.

Grow Your App Slowly

You do not need a full rewrite. You can start small and move one view at a time. This lets you improve your code while keeping your app stable. Over time, you build a stronger and simpler view layer.

About the Author: Brad Gessler

Brad Gessler thumbnail

I created my first major application on Rails by founding the company Poll Everywhere. What began as a small side project eventually turned into a large-scale platform used by millions of people worldwide, reliably processing billions of responses.

As the CTO, I led a team of 35 Rails developers, designers, and product managers. In my work, I went through many mistakes and tough decisions — and it is from this experience that you can learn to create clean, scalable frontend solutions that work effectively both for your team and the entire organization.

Watch Online 45 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 45 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: 001 Introduction
All Course Lessons (45)
#Lesson TitleDurationAccess
1
001 Introduction Demo
10:09
2
002 Why Phlex
20:32
3
003 Why Rails_
06:47
4
004 Why components
07:21
5
005 Phlex is Ruby
07:32
6
006 Rendering
20:21
7
007 Tags, attributes, & text
16:31
8
008 Blocks, slots, & yielding
11:13
9
009 Inheritance
07:08
10
010 Compositions
12:33
11
011 Testing
06:32
12
012 Getting Started
08:39
13
013 Components
09:53
14
014 Rendering from templates
16:01
15
015 Helpers
17:01
16
016 Staying organized
13:10
17
017 Views
11:28
18
018 Layouts
26:11
19
019 Caching
05:59
20
020 Action Mailer
15:36
21
021 Why Superform
23:03
22
022 Getting Started
14:39
23
023 Extending forms with inheritance
07:14
24
024 Reusing forms
03:55
25
025 Customizing
08:33
26
026 Automatic strong parameters
10:28
27
027 Overview
09:06
28
028 Stimulus ERB to Phlex components
08:11
29
029 Seperating Stimulus Concerns
10:57
30
030 Implement Stimulus Component in ERB
07:29
31
031 Stimulus Base Component
07:11
32
032 Turbo Frame DOM IDs
10:14
33
033 Turbo Broadcast
11:52
34
034 Turbo Broadcast Extraction
03:05
35
035 Turbo Pagemorphs
10:56
36
036 Overview
02:43
37
037 Composition
10:03
38
038 Tailwind CSS
10:17
39
039 DaisyUI
06:29
40
040 Overview
02:50
41
041 Install Superview
10:44
42
042 Views in controllers
15:02
43
043 Superform
07:04
44
044 Extracting Superviews
05:01
45
045 Layouts
11:14
Unlock unlimited learning

Get instant access to all 44 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription