About 3 results
https://cbennell.com/posts/using-pundit-in-phlex-components · 31 Oct 2025
Pundit's helper module makes it easy to do authorization checks in our Phlex views.
https://cbennell.com/posts/phlex-tabs · 25 Mar 2025
Here's how I created a flexible interface for a Phlex component that captures multiple blocks, while maintaining backward compatibility with the simpler string-based API.
https://cbennell.com/posts/rails-disable-able-button-component · 13 Jun 2024
Need a button that enables or disables itself in response to events? I explain how to build a reusable DisableableButton in Rails using ViewComponent (or Phlex) plus a tiny Stimulus controller—perfect for forms where you only want to allow submission onc...