Yeah but the more I think about it, what you had works

Sent from my iPad

> On Mar 2, 2014, at 10:50 PM, jakeschievink <notifications@github.com> wrote:
> 
> In app/controllers/UsersController.coffee:
> 
> >                  Users.studentsWithHw {_id: {$in: req.reqUser.assigned_students}}, (err, studentsAndHw)->
> > -                    res.render "users/view", {students:JSON.stringify(studentsAndHw.students),hws:JSON.stringify(studentsAndHw.hws)}
> > +                    req.reqUser.hws = JSON.stringify(studentsAndHw.hws)
> > +                    req.reqUser.students = JSON.stringify(studentsAndHw.students)
> > +                    res.render "users/view", req.reqUser
> Okay would the res render be better as
> res.render "users/view", {user: req.reqUser, students: JSON.stringify(studentsAndHw.students), hws: JSON.stringify(studentsAndHw.hws)} And then edit the corresponding view to account for the changes?
> 
> —
> Reply to this email directly or view it on GitHub.