DEV Community

Discussion on: A Web App in Rust - 11 User Profiles

lwshang profile image
Linwei Shang

In the function user_profile, there is a missing data.insert("title", "User Profile") among the following code block:

let mut data = Context::new();
data.insert("user", &user);
data.insert("posts", &posts);
data.insert("comments", &comments);
Enter fullscreen mode Exit fullscreen mode

title is required in base.html.

krowemoh profile image
Nivethan Author

Fixed, thank you!