Skip to content

Commit

Permalink
Update docs to note that form/1 is preferred over form_for/4 (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheArrowsmith authored Sep 1, 2023
1 parent d96e87a commit 9030f97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/phoenix_html/form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ 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
[`Phoenix.Component.form/1`](https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#form/1)
instead.
## With changeset data
The entry point for defining forms in Phoenix is with
Expand Down

0 comments on commit 9030f97

Please sign in to comment.