How to use simple_form_for with phlex? #973
-
|
Maybe stupid question, but I didn't manage to use simple_form_for helper to phlex views. , which doesn't render the inputs (tried using both Then I tried changing to Is it possible to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
It really depends how simple form is built, but I expect it’s similar to It might just work if you register a builder yielding helper like we do for form_with. register_builder_yielding_helper :simple_form_forThe simplest option might be to wrap simple form in partials and render those from Phlex. |
Beta Was this translation helpful? Give feedback.
It really depends how simple form is built, but I expect it’s similar to
form_with, which is a nightmare to support.It might just work if you register a builder yielding helper like we do for form_with.
The simplest option might be to wrap simple form in partials and render those from Phlex.