Your controller is rendering
render("Users/show.html", user);
but the element name in your template is an object. He must be a user.
UPDATE IN COMMENT
CRUd source templates use an “object” as an abstraction for an object under CRUD. If you check the source code of the controller, it says:
//ignoring case when template is not found, alternative also uses object render(type, object);
This means that there are two options:
- You have modified a template that violates this compatibility. This is not like your scenario, although we cannot see the full code (so this may be an option)
- You have changed the controller by changing the objects that you submit to the template. This seems to be your scenario. Therefore, either you will correct the template to use the user, or rename the user to an object.
source share