Skip to content

Instantly share code, notes, and snippets.

@juanpaco
Created January 13, 2014 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanpaco/8410206 to your computer and use it in GitHub Desktop.
Save juanpaco/8410206 to your computer and use it in GitHub Desktop.
How to populate those colors
exports.new = function(req, res){
Colour.list({}, function(err,colours) {
res.render('cars/new', {
title: 'New Car',
event: new Car({}),
colours: colours
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment