Permalink
Browse files

added submit

  • Loading branch information...
guoyr committed Apr 10, 2012
1 parent fb80792 commit 81b2dfa1a8dec914578da088eac7fae33fe1af1c
Showing with 5 additions and 2 deletions.
  1. +1 −1 app/controllers/users_controller.js
  2. +4 −0 app/views/users/submit.jade
  3. +0 −1 config/routes.js
@@ -42,7 +42,7 @@ var userModel = mongoose.model('User', User);
action('submit', function() {
console.log("submit");
- render(index.jade);
+ render();
u1 = new UserModel();
u1.username = "Daniel";
u1.passowrd = "1234";
@@ -0,0 +1,4 @@
+!!! 5
+html(lang="en")
+ head
+ title= hello
View
@@ -6,7 +6,6 @@ exports.routes = function (map) {
map.resources("users");
map.get("/", "users#index");
map.get("/users/")
- map.get("")
// feel free to remove generic routes
map.all(':controller/:action');
map.all(':controller/:action/:id');

0 comments on commit 81b2dfa

Please sign in to comment.