Skip to content

Commit

Permalink
Mention HEEx instead of LiveView
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Sep 1, 2023
1 parent 9030f97 commit d2e4b5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/phoenix_html/form.ex
Expand Up @@ -345,7 +345,7 @@ defmodule Phoenix.HTML.Form do
def form_for(form_data, action, options) when is_list(options) do
IO.warn(
"form_for/3 without an anonymous function is deprecated. " <>
"If you are using Phoenix.LiveView, use the new Phoenix.Component.form/1 component"
"If you are using HEEx templates, use the new Phoenix.Component.form/1 component"
)

%{Phoenix.HTML.FormData.to_form(form_data, options) | action: action}
Expand Down Expand Up @@ -400,8 +400,8 @@ defmodule Phoenix.HTML.Form do
We will explore all them below.
Note that if you are using Phoenix LiveView, `form_for/4` is no longer the
preferred way to generate a form tag, and you should use
Note that if you are using HEEx templates, `form_for/4` is no longer
the preferred way to generate a form tag, and you should use
[`Phoenix.Component.form/1`](https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#form/1)
instead.
Expand Down Expand Up @@ -611,7 +611,7 @@ defmodule Phoenix.HTML.Form do
when (is_atom(field) or is_binary(field)) and is_list(options) do
IO.warn(
"inputs_for/3 without an anonymous function is deprecated. " <>
"If you are using Phoenix.LiveView, use the new Phoenix.Component.inputs_for/1 component"
"If you are using HEEx templates, use the new Phoenix.Component.inputs_for/1 component"
)

options =
Expand Down

0 comments on commit d2e4b5d

Please sign in to comment.