There are a couple of ways you can accomplish this, though I'd suggest one of the following:
Set the model in
CommentsNewController
'sinit
method. It would look something like this:App.CommentsNewController = ObjectController.extend({ init: function() { this.set('model', App.Comment.create()); } });
Bind the new comment to a controller property in
PostRoute
and then pass it to the render helper, like so:{{render 'comments/new' comment_object }}
You could even maybe use an outlet instead and do it all in PostRoute#setupController
.