Building Beautiful UIs with Ruby: A Rails-Native Approach
summary
A Rails-native stack replaces a MERN front end by using the Ruby library flex and a shadcn-style Ruby UI component set: single-file components that combine view and logic, generators that eject components into the app, and Tailwind + Stimulus + Floating UI for styles and interactivity. Migration to Postgres already happened; benchmarks show flex often beats ActionView on pages with thousands of tiny components (claims up to 12x, tested on M4 single-core). Flex implements Rails’ renderable interface, supports Turbo selective rendering, and is already used in production.
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker setup
- 1:52From MERN to Rails migration
- 3:21Evaluating Rails UI options
- 5:51Introducing Flex framework
- 7:01Flex component examples
- 8:50Joel explains accordion complexity
- 12:02Flex performance benchmarks
- 13:51Hotel lockout story
- 14:33Ruby UI project overview
- 15:35Flex and Turbo integration
- 17:00Atomic components vs slots
- 18:05Frontend team reaction to Flex
- 19:36Ruby UI validator and accessibility
- 20:21CSS and JavaScript integration
- 22:03Testing Flex components
- 24:57Q&A session
