Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.get('/ideas', function(req, res) {
- Idea.find(function(err, ideas) {
- var vm = [];
- ideas.forEach(function(c) {
- vm.push(c);
- });
- res.render('idea/index', {
- locals: {
- ideas: vm
- }
- });
- });
- });
Add Comment
Please, Sign In to add comment