Does geddy have a mailing list? I searched google groups but it says there wasn't one.

anyway

In the example application for geddy (todo list)...

I added a route for updating the data:
router.match('/todos/update').to({controller: 'todos', action: 'update'});

Then in the controller I have:
      this.update = function (req, resp, params) {
        geddy.model.adapter.Todo.getID(params.id, function(todo){
              todo.title = params.title;
              todo.status= params.status;
        }.bind(this));

        this.redirect({controller: this.name});
      };

And it works, somehow the data gets updated. I'm not complaining I just don't see how, I never 'save' the new data to the geddy.todo array, yet somehow it gets saved.

Is this a feature that just magically works?

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to