Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion phoenix-framework/02-CRUD/guide/5_ecto_associations.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Besides creating the associations in the migrations and schema's we also need a
1. Using `put_assoc/3` if the associated entry does already exist in the database. _(not implemented in the demo)_
```Elixir
@doc false
def changeset(user, attrs, %Credentials{} = credentials) do
def changeset(user, attrs, %Credential{} = credentials) do
user
|> cast(attrs, [:name, :age])
|> validate_required([:name, :age])
Expand Down