From 10bfc98160a26c6d1f3a1e056dbc0e49c9bcf0ad Mon Sep 17 00:00:00 2001 From: Brian Underwood Date: Mon, 30 Jun 2025 14:19:44 +0200 Subject: [PATCH] Make it clear that the `phoenix_html_helpers` library is needed to use `polymorphic_embed_inputs_for` --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 28c7bfc..06a3283 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,8 @@ def view do end ``` +You must also include the `phoenix_html_helpers` library (e.g. `{:phoenix_html_helpers, "~> 1.0"}`). + This provides you with the `polymorphic_embed_inputs_for/3` and `polymorphic_embed_inputs_for/4` functions. Here is an example form using the imported function: