Building a Rails Engine #15 -- ERB Views Meet Phlex Components

ruby dev.to

ERB View Templates: Composing Phlex Components Phlex components are pure Ruby. ERB templates are what the browser actually sees. The glue between the two is a single method: .call. Context This is part 16 of the series where we build DataPorter, a mountable Rails engine for data import workflows. In part 9, we built six Phlex components -- StatusBadge, SummaryCards, PreviewTable, ProgressBar, ResultsSummary, FailureAlert. In part 10, we built the controller and routes. B

Read Full Tutorial open_in_new
arrow_back Back to Tutorials