Replace Custom Form Builders? #276
ryanwood
started this conversation in
Component architecture
Replies: 1 comment 2 replies
-
As a follow up, I see both #132 and #219. My confusion initially was I was calling |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a Rails app that is using TailwindCSS. We've been trying to figure out how best to manage the class name complexity. We've tried just using partials and ViewComponent but neither were a great fit for us. I really like the simplicity of Phlex for crafting views/components.
It gets a little more interesting when we look at forms. We are currently use a custom form builder to abstract away the structural complexity around forms. I'm trying to see how to use Phlex components to wrap form building instead of using a custom builder and dealing with all the ugly template concatenation using content_tags.
It seems that using
form_with
in Phlex yields the component (self), not the form builder which make it a little challenging. I guess I'm not clear how best to use Phlex to build forms in a Rails app. Any help would be appreciated.Beta Was this translation helpful? Give feedback.
All reactions