-
Notifications
You must be signed in to change notification settings - Fork 524
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
It doesnt appear the secrets! #3
Comments
you need to edit secrets.ejs |
edit secrets.ejs with <%= ele.secret%> <%} %> |
Same problem with me. |
I guess you forgot to add submit post route:
|
Have you update your user schema i.e add secrets: String in user schema? |
I am updated the userschema & also added the submit post route code but it's still not working.. how can I fix this secret route problem that can loop through all my secrets ??? plz help me |
req.user._id Use this in submit post request, it will work! |
Hey! I tried all of the things but none worked for me:( my code is exactly the same as Angela. |
Hey!! |
it is deprecated, and dont know how to write them now |
I have all the code like the posted one, and it doesnt appear the secrets!
app.get("/secrets", function(req, res){
User.find({"secret": {$ne: null}}, function(err, foundUsers){
if (err){
console.log(err);
} else {
if (foundUsers) {
res.render("secrets", {usersWithSecrets: foundUsers});
}
}
});
});
in the db i have the secret, but i cant show them!
The text was updated successfully, but these errors were encountered: