You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"author" is the name of the table not the field "name" which gets loaded into conn for the filter. Changing &1.author to &1.name and doing the same for assign_categories makes the Post index work when an Author or Category has been defined.
The codegen assoc_plug_definitions(binding, attrs) in torch/lib/mix/tasks/torch.gen.ex uses :display_name. I've not looked any deeper, I'm a bit out of my depth at this point.
Thanks for making torch btw 👍
The text was updated successfully, but these errors were encountered:
I got the following error trying out the example app:
It only happens when there is at least one author or category. If there are no author or category records the error does not occur.
The problem in the example code occurs here: torch/apps/example/web/controllers/admin/post_controller.ex
|> Enum.map(&({&1.author, &1.id}))
"author" is the name of the table not the field "name" which gets loaded into conn for the filter. Changing &1.author to &1.name and doing the same for assign_categories makes the Post index work when an Author or Category has been defined.
The codegen assoc_plug_definitions(binding, attrs) in torch/lib/mix/tasks/torch.gen.ex uses :display_name. I've not looked any deeper, I'm a bit out of my depth at this point.
Thanks for making torch btw 👍
The text was updated successfully, but these errors were encountered: