Skip to content

Commit

Permalink
Update inconsistent schema usage in to_form example (#2734)
Browse files Browse the repository at this point in the history
  • Loading branch information
03juan committed Aug 9, 2023
1 parent 903ada6 commit 1a79e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/phoenix_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1385,14 +1385,14 @@ defmodule Phoenix.Component do
end
end
And then you create a changeset which you pass to `to_form`:
And then you create a changeset that you pass to `to_form`:
%MyApp.Blog.Post{}
%MyApp.Users.User{}
|> Ecto.Changeset.change()
|> to_form()
In this case, once the form is submitted, the parameters will
be available under `%{"post" => post_params}`.
be available under `%{"user" => user_params}`.
## Options
Expand Down

0 comments on commit 1a79e78

Please sign in to comment.