Skip to content

Commit

Permalink
empty project
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltask committed Dec 9, 2012
1 parent bd09a09 commit a1a419d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions routes/admin/projects.js
Expand Up @@ -19,8 +19,9 @@ exports.index = function(req, res) {
});
};

exports.new = function(req, res){
res.render('admin/projects/form', { title: 'New project', method: 'post' });
exports.new = function(req, res) {
var project = new Project();
res.render('admin/projects/form', { title: 'New project', project: project, method: 'post' });
};

exports.create = function(req, res) {
Expand Down

0 comments on commit a1a419d

Please sign in to comment.