Skip to content

Commit

Permalink
Fix typo in sample code (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelterryio committed Mar 30, 2023
1 parent cf704e4 commit b668683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phoenix_html/form.ex
Expand Up @@ -508,8 +508,8 @@ defmodule Phoenix.HTML.Form do
def changeset(user \\ %User{}, params) do
user
|> Ecto.Changeset.cast(params)
|> Ecto.Changeset.cast_assoc(:permalink)
|> Ecto.Changeset.cast(params, [:name])
|> Ecto.Changeset.cast_embed(:permalink)
end
end
Expand Down

0 comments on commit b668683

Please sign in to comment.