Skip to content
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

No view in option1 #3

Open
robertcasanova opened this issue Feb 11, 2012 · 2 comments
Open

No view in option1 #3

robertcasanova opened this issue Feb 11, 2012 · 2 comments

Comments

@robertcasanova
Copy link

There's no View for "todo" in option1, maybe you forgot to push something! =)

@addyosmani
Copy link
Owner

There are views in there, they're just inlined rather than using anything dynamic to process them.

@robertcasanova
Copy link
Author

In app.js of option 1, the following lines:

app.get('/todo', function(req, res){
res.render('todo', {title: "MongoDB Backed TODO App"});
});

Should be replaced with something like:

app.get('/todo', function(req, res){
res.sendfile(__dirname + '/public/static.html');
});

Because no todo view is defined.

Is it right?

@addyosmani addyosmani reopened this Apr 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants