Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error al hacer asociacion #142

Open
PedroFuenzalida opened this issue Oct 27, 2021 · 1 comment
Open

Error al hacer asociacion #142

PedroFuenzalida opened this issue Oct 27, 2021 · 1 comment

Comments

@PedroFuenzalida
Copy link

Hola! tratando de usar una asociación, al asignar un usuario a un curso, retorna un error 500 con la especificación "ActiveRecord::AssociationTypeMismatch (User(#70250535648820) expected, got "#User:0x00007fc8f721dac8" which is an instance of String(#70250485808600)):". Alguien sabe porque se puede estar produciendo?

@PDominguezW
Copy link

Ese error quiere decir que estas entregando un string envez de un usuario cuando haces la asignacion del usuario al curso. Fijate en la parte del codigo donde haces aquella asignación.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants